Add Content to the Thank You Page

If you wanted to add some text to the thank you page, which Customers see after placing an order through the WooCommerce Checkout page.

Some Related Posts:-

See also  Secure WordPress Login Page 2021

In this situation, they intended to provide a special coupon discount to motivate customers to return to the website and make another purchase.

add_action( 'woocommerce_thankyou', 'codeithub_add_content_thankyou' );
  
function codeithub_add_content_thankyou() {
   echo '<p>Add Content to the WooCommerce Thank You Page</p>';
}

Before:

Default Thank you page

After:

Content on Thankyou Page

Leave a Reply