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  Move Order Notes Field on Checkout Page

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>';


Default Thank you page


Content on Thankyou Page

Leave a Reply

Your email address will not be published. Required fields are marked *