Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shameemreza/bcdc2f039dae2285e0db5a3eb2698642 to your computer and use it in GitHub Desktop.
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
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