Skip to content

Instantly share code, notes, and snippets.

@DavidSteinbauer
Created May 26, 2014 09:06
Show Gist options
  • Save DavidSteinbauer/56f56752b7d2ffc73be9 to your computer and use it in GitHub Desktop.
Save DavidSteinbauer/56f56752b7d2ffc73be9 to your computer and use it in GitHub Desktop.
Remove Woocommerce Emails in WC 2.x
add_action('woocommerce_email', 'do_not_send_some_email_notifications');
function do_not_send_some_email_notifications(WC_Emails $wc_emails) {
remove_action('woocommerce_order_status_completed_notification', array($wc_emails->emails['WC_Email_Customer_Completed_Order'], 'trigger'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment