Created
April 25, 2017 23:36
-
-
Save fervous/4cf243ec4ad07311fd42175c2b076e79 to your computer and use it in GitHub Desktop.
Email copy of Vendor Approval 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_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