Created
August 1, 2017 22:35
-
-
Save fervous/76eeab6b5f23bf5f9161ed2f19a8bc92 to your computer and use it in GitHub Desktop.
Email copy of Vendor Shipped to admin email - WC Vendors & Pro
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_shipped', 10, 2); | |
function custom_vendor_shipped( $headers, $email ) { | |
if ($email == 'vendor_notify_shipped') { | |
$headers .= 'BCC: Your Name <youremail@yourwebsite.com>' . "\r\n"; | |
} | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment