Created
July 21, 2021 06:56
-
-
Save Sirvijver/e68f1bf1d18159ab1783191750976801 to your computer and use it in GitHub Desktop.
Removed on-hold emails WC PayPal Payments
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_filter( 'woocommerce_email_recipient_customer_on_hold_order', 'stop_on_hold_order_notification_for_specified_payment', 10, 2 ); | |
| function stop_on_hold_order_notification_for_specified_payment( $recipient, $order ) { | |
| if ( $order->get_payment_method() == 'ppcp-gateway' ) { | |
| $recipient = ''; | |
| } | |
| return $recipient; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment