Stop fns from running on non woocommerce pages
-
Hi! This plugin is slowing my site down horrifically (sporadically). Query Monitor tells me I’m getting 7 failing api calls just trying to load the home page or blog page:
——-
POST
https://api-m.paypal.com/v1/oauth2/token
?grant_type=client_credentials429 Too Many Requests (sometimes 400 instead)
WooCommerce\P\A\A\PayPalBearer->request()
Plugin: woocommerce-paypal-payments
——
I’m trying to work out what the conflict is – will try reconnecting the PayPal account when I get access to that – but in the meantime, is there a way to stop those calls happening on pages that aren’t even using WC, like you can with WC itself, with calls like wp_dequeue_script( ‘woocommerce’ )? (see https://isotropic.co/how-to-stop-woocommerce-scripts-from-loading-on-non-shop-pages-optimize-scripts/) … are there specific scripts I can dequeue for WPP?
Thanks!
Julie
The page I need help with: [log in to see the link]
- The topic ‘Stop fns from running on non woocommerce pages’ is closed to new replies.