我很惊讶这个选项不存在。当最终的帐单发送给客户时,我只希望收到一封电子邮件。
add_filter( 'woocommerce_email_headers', 'woocommerce_completed_order_email_bcc_copy', 10, 2);
function woocommerce_completed_order_email_bcc_copy( $headers, $email ) {
if ($email == 'customer_completed_order') {
$headers .= 'BCC: Your name <emailnam@domain.com>' . "\r\n"; //just repeat this line again to insert another email address in BCC
}
return $headers;
}