Skip to content

Instantly share code, notes, and snippets.

@mitchellkrogza
Created June 6, 2021 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchellkrogza/2aa59a7b1a5ce33a3afd92b0140ef1b3 to your computer and use it in GitHub Desktop.
Save mitchellkrogza/2aa59a7b1a5ce33a3afd92b0140ef1b3 to your computer and use it in GitHub Desktop.
WooCommerce - Notify Customer of Order Cancellation
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