Skip to content

Instantly share code, notes, and snippets.

@rwkyyy
Created June 13, 2018 12:38
Show Gist options
  • Save rwkyyy/ed5386b829a9aa6849aca1f452df10b4 to your computer and use it in GitHub Desktop.
Save rwkyyy/ed5386b829a9aa6849aca1f452df10b4 to your computer and use it in GitHub Desktop.
send canceled order mail to client - woocommerce
/*
* Add customer email to Cancelled Order recipient list
*/
function wc_cancelled_order_add_customer_email( $recipient, $order ){
return $recipient . ',' . $order->billing_email;
}
add_filter( 'woocommerce_email_recipient_cancelled_order', 'wc_cancelled_order_add_customer_email', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment