Disable the Stripe API requests from loading on product pages in WooCommerce Stripe Payment Gateway

Disable the Stripe API requests from loading on product pages in WooCommerce Stripe Payment Gateway on child sites.

Snippet Type

Execute on Child Sites

Snippet

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’ );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.