Created
February 10, 2018 19:12
-
-
Save maxrice/cdd248d9bd982af4ba0c58ba7993efed to your computer and use it in GitHub Desktop.
Jilt for WooCommerce - prevent pending orders placed with a certain payment gateway from being sent recovery emails
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 | |
add_filter( 'wc_jilt_order_is_placed', function( $placed, $order ) { | |
return $placed || ( 'pending' == $order->get_status() && 'divido' == $order->get_payment_method() ); | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment