Skip to content

Instantly share code, notes, and snippets.

@jrick1229
Last active March 31, 2022 15:09
Show Gist options
  • Save jrick1229/bffdd524b89f36beb87a8a663cff877b to your computer and use it in GitHub Desktop.
Save jrick1229/bffdd524b89f36beb87a8a663cff877b to your computer and use it in GitHub Desktop.
Add customer email to Cancelled Order recipient list
<?php
/*
* 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