Activate / De-activate plugins based on user roles?
-
So lets say you have multisite & 2 user roles, light and pro. Is it possible to make certain plugins only appear and be accessible to pro members and their site?
You can use a custom admin plugin to hide certain admin menu links for different roles but I want to disable some plugs ins completely for regular members.
I don’t want to restrict access to content or pages but control which plugins are active.
Some plugins add a box, is it called a meta box? Where there are options below the content editor? Or like I use a link shortener plugin that adds a button up top, down below and on the right side of the page in admin so simply hiding the link on the left admin menu won’t work. I need to disable the plugin.
So then when I change the user role to “pro”, it would automatically enable pre-defined plugins only available to users with the pro role.
Is that possible to enable/disable a plugin based on the user role?
I think it may be available with the pro-sites plugin from wpmudev but I already have may site setup with a custom reg page that collects custom data to store in the users profile.
Any suggestions / opinions appreciated!!!
thanks!!
- The topic ‘Activate / De-activate plugins based on user roles?’ is closed to new replies.