Created
August 14, 2020 10:48
-
-
Save madeincosmos/edb553011fc0ba8ff42e43fd0bcb6f8f to your computer and use it in GitHub Desktop.
Unhook Product Vendor emails from On-Hold status
This file contains hidden or 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', 'unhook_vendor_emails_on_hold_status' ); | |
function unhook_vendor_emails_on_hold_status( $email_class ) { | |
remove_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $email_class->emails['WC_Product_Vendors_Order_Email_To_Vendor'], 'trigger' ) ); | |
remove_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $email_class->emails['WC_Product_Vendors_Order_Email_To_Vendor'], 'trigger' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment