Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created November 9, 2019 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/65e4f40ce046da0d8efd4dfb53525333 to your computer and use it in GitHub Desktop.
Save clifgriffin/65e4f40ce046da0d8efd4dfb53525333 to your computer and use it in GitHub Desktop.
Change thank you page text for Checkout for WooCommerce.
<?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 &amp; 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