• Resolved stanxxx

    (@stanxxx)


    Hello!
    We saw that contributors, authors and editors can view and modify the plugin in their admin panel. How can we reserve this to admins?
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    You will be needing a different plugin to manage User Roles.

    Thread Starter stanxxx

    (@stanxxx)

    It should be possible to do without any additional plugin, because all other plugins show up only for admins. This one (that is very good 🙂 shows up, so it should be possible to change a parameter inside so that it follows the same rules than other plugins.

    Thread Starter stanxxx

    (@stanxxx)

    Well, in fact… Adding a function in the functions.php of child theme is ok. The default level is “edit_other_posts”, we replace by “activate_plugin” that only the admin has, it’s ok.

    function metaslider_change_required_role($capability) {
    return ‘activate_plugins’;
    }
    add_filter(‘metaslider_capability’, ‘metaslider_change_required_role’);

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hide the plugin for NON-admins’ is closed to new replies.