Created
May 23, 2017 10:39
-
-
Save vishalck/3cf1c3767bfcbb7c2176dcdc080546ec to your computer and use it in GitHub Desktop.
Change Text & Add External Link on Order Received Page in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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