Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created May 21, 2015 17:15
Show Gist options
  • Save corsonr/093cf4c57262b271fdef to your computer and use it in GitHub Desktop.
Save corsonr/093cf4c57262b271fdef to your computer and use it in GitHub Desktop.
WooCommerce a dd recipient email on completed order
/**
* WooCommerce Extra Feature
* --------------------------
*
* Add another email recipient when an order is completed
*
*/
function woo_extra_email_recipient($recipient, $object) {
$recipient = $recipient . ', [email protected]';
return $recipient;
}
add_filter( 'woocommerce_email_recipient_customer_completed_order', 'woo_extra_email_recipient', 10, 2);
@monecchi
Copy link

That's a really straight forward function!, Thanks! Anyway, I was wondering if it would be possible, to completely replace all admin notifications related to the WooCommerce Shop to another email address? I mean, site managers sometimes would rather prefer to organize those by splitting Admin Notifications and Store Notifications to different department email addresses. The WooCommerce option to change the "From email address" might not be the enough for that kind of organizational purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment