Created
May 26, 2014 09:06
-
-
Save DavidSteinbauer/56f56752b7d2ffc73be9 to your computer and use it in GitHub Desktop.
Remove Woocommerce Emails in WC 2.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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