How to disable plugins for all non-Admin users? Eg: Query Monitor

[ad_1]

Ahh, I see this is done with “Logged Users”, adding a row, clicking the “Edit” icon, and using the condition: “role(administrator)”.

Quirky, but that works. Personally, I’m having all plugins load for Administrators.

May I suggest this row and condition is added by default to the plugin, please? I can’t imagine many scenarious where this being the default setting would not be helpful to all Admins in their setup needs.

I would also add to that default row request, a row for “not(role(administrator))” too, to make that clear. The common one being you don’t want Query Monitor, Black Bar and other similar developer plugins loading for non-Admins.

I have Query Monitor disabled for all non-Admins with a “not(role(administrator))” row.

It seems to work for everything, except Query Monitor is still loading for Custom Post Type Archive page.

https://pasteboard.co/HWLsH1FxBY9F.png

Perhaps the priority of this setting isn’t high enough?

Plugin Author
Jose

(@giuse)

Hi @surferking

it would be a lot easier if you use the settings Users => Unlogged Users, as you can see in the section “How to deactivate plugins for unlogged users (PRO)” at https://freesoul-deactivate-plugins.com/how-deactivate-plugiins-on-specific-pages/users/

In any case these are features of the PRO version.
I will close this thread. Please, open a ticket on the premium support if you still have issues.

Have a great day!

Jose

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer