Skip to content

Instantly share code, notes, and snippets.

@ofernandolopes
Forked from corsonr/gist:093cf4c57262b271fdef
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save ofernandolopes/a0a3635367b4fe6c88cd to your computer and use it in GitHub Desktop.

Select an option

Save ofernandolopes/a0a3635367b4fe6c88cd to your computer and use it in GitHub Desktop.
WooCommerce - Add 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 . ', your@email.com';
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