Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vishalck/3cf1c3767bfcbb7c2176dcdc080546ec to your computer and use it in GitHub Desktop.
Save vishalck/3cf1c3767bfcbb7c2176dcdc080546ec to your computer and use it in GitHub Desktop.
Change Text & Add External Link on Order Received Page in WooCommerce
<?php
add_filter('woocommerce_thankyou_order_received_text', 'woo_change_order_received_text', 10, 2 );
function woo_change_order_received_text( $str, $order ) {
$new_str = 'We have emailed the purchase receipt to you. Please make sure to fill <a href="http://localhost:8888/some-form.pdf">this form</a> before attending the event';
return $new_str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment