Hooking into the WooCommerce thank you page is really easy and in this guide, we show you how to add custom content under the “Order received” title. You may wish to show customers promotional text or give them a custom thank message once they have checked out.
/*
* Snippet Name: WooCommerce Thank You Page custom content under order received title
* Snippet Author: ecommercehints.com
*/
add_action( 'woocommerce_before_thankyou', 'ecommercehints_custom_content_under_order_received_title', 10, 0 );
function ecommercehints_custom_content_under_order_received_title() {
echo 'Please check your confirmation email for your unique download link.';
}