7
當有人在woocommerce中訂購時,您會以管理員身份收到訂單電子郵件。我想爲此電子郵件添加其他收件人。然而!我只想用這些精確的郵件製作這個額外的BCC。並非所有其他郵件都會通過。Woocommerce BCC訂購電子郵件給管理員
是什麼,在這個線程說,適用於所有的郵件,而不是specificly訂單電子郵件,管理員獲取:Additional recipients on woocommerce invoice
當有人在woocommerce中訂購時,您會以管理員身份收到訂單電子郵件。我想爲此電子郵件添加其他收件人。然而!我只想用這些精確的郵件製作這個額外的BCC。並非所有其他郵件都會通過。Woocommerce BCC訂購電子郵件給管理員
是什麼,在這個線程說,適用於所有的郵件,而不是specificly訂單電子郵件,管理員獲取:Additional recipients on woocommerce invoice
試試這個代碼:
add_filter('woocommerce_email_headers', 'add_bcc_to_wc_admin_new_order', 10, 3);
function add_bcc_to_wc_admin_new_order($headers = '', $id = '', $wc_email = array()) {
if ($id == 'new_order') {
$headers .= "Bcc: [email protected]\r\n"; // replace [email protected] with your email
}
return $headers;
}
該代碼被檢測,在WC 2.1
偉大的@Ratnakar,只是什麼iv一直在尋找! –
似乎無法使用WC 2.3 ...任何建議? – drake035
@ drake035重新檢查它,它也在WC 2.3上工作 –