Skip to content

Instantly share code, notes, and snippets.

@fervous
Created April 25, 2017 23:36
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/4cf243ec4ad07311fd42175c2b076e79 to your computer and use it in GitHub Desktop.
Save fervous/4cf243ec4ad07311fd42175c2b076e79 to your computer and use it in GitHub Desktop.
Email copy of Vendor Approval to admin email - WC Vendors & Pro
add_filter( 'woocommerce_email_headers', 'custom_vendor_application', 10, 2);
function custom_vendor_application( $headers, $email ) {
if ($email == 'vendor_application') {
$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