Created
March 3, 2023 13:00
-
-
Save stuartduff/72c8ae748f41c0ebedcd595eab1525f8 to your computer and use it in GitHub Desktop.
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
function remove_wc_stripe_from_checkout_page( $available_gateways ) { | |
unset( $available_gateways['stripe'] ); | |
return $available_gateways; | |
} | |
add_filter( 'woocommerce_available_payment_gateways', 'remove_wc_stripe_from_checkout_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment