Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save monecchi/947917256e670ccd3c7d27cddd631675 to your computer and use it in GitHub Desktop.
Save monecchi/947917256e670ccd3c7d27cddd631675 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment