Skip to content
Advertisement

Set admin email as BCC for WooCommerce cancelled and failed orders

I am currently using this code to send out notifications on failed and cancelled orders.

JavaScript

The problem is that those two admin emails I have set in the system under woocommerce settings are also added to the email recipient together with the customers email. Is it possible to tweak this, so the admin E-mail adresses are on BCC instead, so the customer can’t see their email addresses?

Advertisement

Answer

You need to make some little changes to your hooked function and to add an additional hooked function to handle the admin email as BCC recipient:

JavaScript

Code goes in functions.php file of your active child theme (or active theme). It should work.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement