I want to send an email to custom email address when order status changed to processing along with customer email ID.
Asked
Active
Viewed 4,989 times
1 Answers
2
You can use a custom function hooked in
woocommerce_email_recipient_{$this->id}
filter hook, targeting 'customer_processing_order' email notification, this way:
add_filter('woocommerce_email_recipient_customer_processing_order', 'wh_OrderProcessRecep', 10, 2);
function wh_OrderProcessRecep($recipient, $order)
{
// Set HERE your email adresses
$custom_email = 'mycustomemail@domain.com';
$recipient = $recipient . ', ' . $custom_email;
return $recipient;
}
Code goes in function.php file of your active child theme (or theme). Or also in any plugin php files.
Reference:
- Adding a second email address to a completed order in WooCommerce
- Customising WooCommerce notification emails with hooks and filters
- WooCommerce email notifications: different email recipient for different cities
Hope this helps!

Community
- 1
- 1

Raunak Gupta
- 10,412
- 3
- 58
- 97