Created
May 4, 2015 10:01
-
-
Save bizzthemes/f09966581b1b99623f6d to your computer and use it in GitHub Desktop.
Disable customer email notification
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
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
add_action( 'bizzthemes_send_notification_shortcut', 'disable_customer_notification', 10, 3 ); | |
function disable_customer_notification( $status, $customer_email, $subject, $body, $headers ) { | |
// Stop customer email notifications | |
if ( $status == 'customer' ) { | |
return ''; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment