[Resolved] Hook on order-received thank you page

Home Forums Support Hook on order-received thank you page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1211219
    johnaps

    Hello!
    I am trying to add a back to shop button on thank you page…

    I found this solution that works

    add_action( 'woocommerce_thankyou', 'bbloomer_add_content_thankyou' );
     
    function bbloomer_add_content_thankyou() {
    echo '<a class="rbs button" href="https://sofianos-orthopedika.gr/">Πίσω στο κατάστημα</a>';
    }

    but i am wondering if there is a hook on gp that would do the job so i wont overload my functions.php file

    #1211223
    Leo
    Staff
    Customer Support

    Hi there,

    That’s looks like the best solution 🙂

    #1211370
    johnaps

    Thank you!!

    #1211400
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.