Disable plugins on product categories
-
Hi,
I′d like to disable plugins on product category pages. So , all pages that contain /categoria/ would not have these plugins loaded.
The goal is to reduce the number of requests made and, thus, this measure would reduce the page load time.
I tried to accomplish this goal by creating this plugin filter: https://snipboard.io/7WHCz8.jpg
For example, I tried to avoid loading the plugin WP Loyalty on category pages because it is not necessary on these kind of pages: https://snipboard.io/nE5Nq8.jpg
However, the plugin still loads, as you can see on this tests made on a product category page (it′s the requests 16, 17 and 18): https://www.webpagetest.org/result/230808_AiDcQ6_853/1/details/#waterfall_view_step1
https://snipboard.io/dgWsfz.jpg
What am I doing wrong?
Best regards,
Ricardo Franco
The page I need help with: [log in to see the link]
- The topic ‘Disable plugins on product categories’ is closed to new replies.