Last active
September 5, 2017 08:19
-
-
Save neilgee/a570907ec8bb4d54741f to your computer and use it in GitHub Desktop.
WooCommerce Filter Thank You ORder Received Text
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', 'wpb_thankyou' ); | |
function wpb_thankyou() { | |
$added_text = '<p>You can access the PDF Download from the <a href="/account-page">My Account Page</a>.</p>'; | |
return $added_text ; | |
} |
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', 'wpb_thankyou', 10, 2 ); | |
function wpb_thankyou( $thankyoutext, $order ) { | |
$added_text = $thankyoutext . '<p>You can access the PDF Download from the <a href="/account-page">My Account Page</a>.</p>'; | |
return $added_text ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment