Woocommerce: Adding second email address not working, unless recipient is admin


I have tried several methods to add additional recipients to Woocommerce emails, but it only seems to work on test orders where the primary recipient is the admin.



These are the snippets I've tried. If the customer for the order is the admin, the email is sent both addresses. If the order contains a customer email address, it is only send to that email address and not the CC.



Here are the code snippets I've tried:



.



.



This one works, but fires with every single email notification:



If I add the email $object in, so it only fires for customer processing orders, it only cc's on the admin emails (cc only, not recipient), not customers (neither cc nor recipient).



I would appreciate any advice.



The following code works in Woocommerce last version (v3.4.3) adding a custom email in "CC" for Customer processing email notification:



Code goes in function.php file of your active child theme (or active theme). Tested and work.



You can even add it to Bcc instead of Cc, like in this answer thread:
Adding custom emails to BCC for specific Woocommerce email notifications



The hook woocommerce_email_recipient_customer_processing_order doesn't seem to work in Woocommerce 3.4.x.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

The Dalles, Oregon

眉山市

清晰法令