Skip to content

Instantly share code, notes, and snippets.

@fervous
Created August 1, 2017 22:35
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 fervous/76eeab6b5f23bf5f9161ed2f19a8bc92 to your computer and use it in GitHub Desktop.
Save fervous/76eeab6b5f23bf5f9161ed2f19a8bc92 to your computer and use it in GitHub Desktop.
Email copy of Vendor Shipped to admin email - WC Vendors & Pro
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