Last active
October 17, 2022 15:16
-
-
Save mio31337/523c26ddce15d1b53bbfc2d6ab7d1919 to your computer and use it in GitHub Desktop.
WooCommerce: Add To: Recipient to a Customer WooCommerce Email PROCESSING AND COMPLETED
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
/** | |
* 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