Last active
April 23, 2025 11:05
-
-
Save xlplugins/6922b159c1ec2b1ca06a6788eaa83785 to your computer and use it in GitHub Desktop.
Disallow funnelkit stripe to save cards
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
/** | |
* Disallow funnelkit stripe to save cards | |
**/ | |
add_filter('fkwcs_should_save_card',function( $save_card, $order) { | |
$order_id = $order->get_id(); | |
$save_card = ( function_exists( 'wcs_order_contains_subscription' ) && ( wcs_order_contains_subscription( $order_id ) || wcs_is_subscription( $order_id ) || wcs_order_contains_renewal( $order_id ) ) ); | |
return $save_card; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment