Last active
April 21, 2017 02:20
-
-
Save fervous/c1cb74fb1a44329a2802d7d16c5ba940 to your computer and use it in GitHub Desktop.
send a copy of "vendor notify new order" 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_order', 10, 2); | |
function custom_vendor_notify_order( $headers, $email ) { | |
if ($email == 'vendor_new_order') { | |
$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