• 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!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not sure if this will help resolve some of the issues you’ve listed above, but might be worth a shot to try this based on some of what you’re after:

    https://wordpress.org/plugins/user-role-editor/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I don’t want to restrict access to content or pages but control which plugins are active.

    Based on user role is where you lost me…

    https://wordpress.org/plugins/multisite-plugin-manager/ is the plugin to use to manage plugin per site, but I don’t know what you mean by ‘per user’ since only site admins can activate/deactivate plugins. You’d have to make your non-pro users non-admins :/

    Thread Starter virtualgeorge

    (@virtualgeorge)

    Yeah maybe this is a dumb question and its not possible but I saw the “pro-sites” plugin from wpmudev where you can choose which plugins are activated based on the users role or the membership level. So you can have a premium membership available and then include some “premium” plugins only available to “premium” members. So that is done when they signup/create the new site.

    So I have a site with 2 membership levels and right now if someone wants the upgraded version with the extra plugins (not installed by default), then admin has to go in and change the role to “pro”. I also hide some content with another plugin so I have to change the users role to make that hidden content available. And after changing the role I then have to manually activate the “premium” plugins for the upgraded user.

    Does that make sense? So I was wondering when I change the users role using the plugin mentioned above, I was wondering if I could automatically also activate specific plugins.

    I use a plugin called “for your eyes only” that lets you restrict access to any content based on the users role so thought maybe plugins could also be restricted in the same way?

    Hope that makes sense 🙂

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Looking at https://premium.wpmudev.org/project/pro-sites/ it’s actually setting SITES to specific levels, versus users. Or rather the Admin users’ pro site level…

    It may be a case where that’s the only plugin that does it.

    Otherwise you’re in the realm of building your own.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Activate / De-activate plugins based on user roles?’ is closed to new replies.