Created
July 7, 2024 14:49
-
-
Save shameemreza/bcdc2f039dae2285e0db5a3eb2698642 to your computer and use it in GitHub Desktop.
Disable the Stripe API requests from loading on product pages in WooCommerce Stripe Payment Gateway
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
add_filter( ‘wc_stripe_load_scripts_on_product_page_when_prbs_disabled’, ‘__return_false’ ); | |
add_filter( ‘wc_stripe_load_scripts_on_cart_page_when_prbs_disabled’, ‘__return_false’ ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment