Created
April 20, 2017 02:21
-
-
Save fervous/e79e9d9e41d5a0c9de092d24e5f2c3e8 to your computer and use it in GitHub Desktop.
send a copy of "vendor notify shipped" email to the admin
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
add_filter( 'woocommerce_email_headers', 'custom_vendor_notify_shipped', 10, 2); | |
function custom_vendor_notify_shipped( $headers, $email ) { | |
if ($email == 'vendor_notify_shipped') { | |
$headers .= 'BCC: Your name <your@email.com>' . "\r\n"; | |
} | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment