Skip to content

Instantly share code, notes, and snippets.

@mio31337
Last active October 17, 2022 15:16
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 mio31337/523c26ddce15d1b53bbfc2d6ab7d1919 to your computer and use it in GitHub Desktop.
Save mio31337/523c26ddce15d1b53bbfc2d6ab7d1919 to your computer and use it in GitHub Desktop.
WooCommerce: Add To: Recipient to a Customer WooCommerce Email PROCESSING AND COMPLETED
/**
* WooCommerce: Add To: Recipient to a Customer WooCommerce Email PROCESSING AND COMPLETED
* Author: MarioMarkovic.com
*/
function wc_order_completed_email_add_to( $email_recipient, $email_object, $email ) {
$email_recipient .= ', info@example.com';
return $email_recipient;
}
add_filter( 'woocommerce_email_recipient_customer_processing_order', 'wc_order_completed_email_add_to', 9999, 3 );
add_filter( 'woocommerce_email_recipient_customer_completed_order', 'wc_order_completed_email_add_to', 9999, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment