[ad_1]
[ad_2]
Is there a way to get a plug-ins functionality, on only pages where I need it, and all the other pages the plug-in is basically turned off?
Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
Which plugin?
There are multiple ways of doing it. I prefer to dequeue the plugin from all pages and enable it for specific pages only. But you can also use a plugin for this e.g., Plugin Load Filter and AssetCleanup are both very good plugins for running certain scripts on specific pages only.
If you write the plugin yourself, yes, you can do this easily with conditions like `is_page(123)` etc.
If this is a plugin written by someone else, it depends on the plugin author and most likely you won’t get this feature built-in.
Asset cleanup pro
try plugin like “Plugin Organizer” or “Asset CleanUp” you can turn it on or off on specific pages