cc autonomic and rootpath in failed order emails
This commit is contained in:
@ -190,3 +190,22 @@ add_action('woocommerce_before_checkout_form', 'remove_checkout_coupon_form', 9)
|
|||||||
function remove_checkout_coupon_form() {
|
function remove_checkout_coupon_form() {
|
||||||
remove_action('woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10);
|
remove_action('woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @snippet Add Cc: or Bcc: Recipient @ WooCommerce Completed Order Email
|
||||||
|
* @how-to businessbloomer.com/woocommerce-customization
|
||||||
|
* @author Rodolfo Melogli, Business Bloomer
|
||||||
|
* @compatible WooCommerce 7
|
||||||
|
* @community https://businessbloomer.com/club/
|
||||||
|
*/
|
||||||
|
|
||||||
|
add_filter('woocommerce_email_headers', 'bbloomer_order_completed_email_add_cc_bcc', 9999, 3);
|
||||||
|
|
||||||
|
function bbloomer_order_completed_email_add_cc_bcc($headers, $email_id, $order)
|
||||||
|
{
|
||||||
|
if ('customer_failed_order' == $email_id) {
|
||||||
|
$headers .= "Cc: Autonomic <helo@autonomic.zone>\r\n"; // delete if not needed
|
||||||
|
$headers .= "Bcc: Rootpath <admin@rootpath.studio>\r\n"; // delete if not needed
|
||||||
|
}
|
||||||
|
return $headers;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user