WooCommerce emails come with the following hard-coded (argh!) greetings: ‘Thanks for shopping with us.‘, ‘Thanks for reading.‘, ‘We look forward to seeing you soon.‘, ‘We look forward to fulfilling your order soon.‘, ‘Thanks!‘, ‘We hope to see you again soon.‘ based on the specific email.

While having these greetings in the WooCommerce customer email footer may look nice and friendly, it is unlike WooCommerce to present them without the possibility to “filter” them out (i.e. removing them if you don’t want them).

So, a workaround is necessary. And it’s pretty simple: we just tell WooCommerce to “translate” those strings into empty strings, so that they don’t show. Enjoy!

WooCommerce Customer Completed Email: hiding the “Thanks for shopping with us.” greeting

Snippet (PHP): Hide “Thanks for shopping with us.” and other greetings @ WooCommerce Customer Order Emails

 * @snippet       Hide Greetings @ WooCommerce Emails
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=111192
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/

add_filter( 'gettext', 'bbloomer_translate_woocommerce_strings_emails', 999 );
function bbloomer_translate_woocommerce_strings_emails( $translated ) {
   // Get strings and translate them into empty string >>> ''
   $translated = str_ireplace( 'Thanks for shopping with us.', '', $translated );
   $translated = str_ireplace( 'We hope to see you again soon.', '', $translated );
   return $translated;


Leave a Reply