How to send "admin new order e-mail" additionally in cc to [email protected] when new order has products from category id = "99" ?
Can anyone help me?
How to send "admin new order e-mail" additionally in cc to [email protected] when new order has products from category id = "99" ?
Can anyone help me?
Copyright © 2021 Jogjafile Inc.
I guess something like this should do the trick:
The explanation is simple, everytime a WC email is sent the woocommerce_email_headers is called. Inside that filter you gain access to the "id" of the email (the way wc distinguish the emails) so you can check if it's the new_order email and if so add the corrisponding header to the email.
I didn't test the code but it should work. Place that code inside your theme function.php file