Created
November 7, 2024 14:31
-
-
Save xlplugins/eb0e85aa5596538d96ebcb819dbf08be to your computer and use it in GitHub Desktop.
fkwcs_gateway_disable_tokenization.php
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
/** | |
* Disallow FunnelKit Stripe plugin support for tokenization | |
*/ | |
add_action( 'woocommerce_payment_gateway_supports', function ( $bool, $feature, $gateway ) { | |
if ( $gateway->id === 'fkwcs_stripe' && $feature === 'tokenization' ) { | |
return false; | |
} | |
return $bool; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment