Skip to content

Instantly share code, notes, and snippets.

@kreamweb
Created May 13, 2020 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kreamweb/e7770f3e5d242110bca214d1a645dede to your computer and use it in GitHub Desktop.
Save kreamweb/e7770f3e5d242110bca214d1a645dede to your computer and use it in GitHub Desktop.
<?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