Created
November 9, 2019 17:51
-
-
Save clifgriffin/65e4f40ce046da0d8efd4dfb53525333 to your computer and use it in GitHub Desktop.
Change thank you page text for Checkout for 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 | |
// Place in functions.php | |
// Do NOT include opening PHP tag (<?php) | |
add_filter( 'cfw_before_thank_you_customer_information', function() { | |
return 'Please ensure your phone and shipping address is correct to ensure timely & accurate delivery.'; | |
} ); | |
add_filter( 'cfw_order_updates_text', function( $order ) { | |
return sprintf( 'We'll send a confirmation to %s when your items ship. You will also receive SMS Notification on %s about the delivery status.', $order->get_billing_email(), $order->get_billing_phone() ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment