Created
May 13, 2020 09:04
-
-
Save kreamweb/e7770f3e5d242110bca214d1a645dede to your computer and use it in GitHub Desktop.
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
<?php if( function_exists('YWSBS_Subscription_Order')){ | |
add_filter('ywsbs_renew_order_status', 'ywsbs_put_woo_stripe_renew_in_pending', 10, 2); | |
function ywsbs_put_woo_stripe_renew_in_pending( $status, $subscription ){ | |
if( $subscription && 'stripe'===$subscription->payment_method){ | |
$status = 'pending'; | |
} | |
return $status; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment