Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////// BCC EMAIL /////////////
- function bcc_email_headers( $headers ){
- $recipient = get_from_address();
- $admin = get_option('admin_email');
- if ( $recipient == $admin ){
- $headers .= 'BCC: Name <bcc@mail.com>' . "rn";
- }
- return $headers;
- }
- add_action( 'woocommerce_email_headers', 'bcc_email_headers', 10, 3 );
- ////////// BCC EMAIL by Order Status /////////////
- function bcc_email_headers( $headers, $order ){
- global $woocommerce;
- if ( wc_get_order() == 'meu_status' ){
- $headers .= 'BCC: Name <bcc@mail.com>' . "rn";
- }
- return $headers;
- }
- add_action( 'woocommerce_email_headers', 'bcc_email_headers', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement