• Resolved oliveo90

    (@oliveo90)


    Hi,

    I installed a plugin that has “manage_options” hard-coded as the required capability. I’m trying to make this plugin menu available for Editor role so they can use the plugin. I tried adding “Editor in the “extra Capabilities” field, but editors still can’t view the plugin menu. How can i make it work?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Unfortunately, that’s not going to work. You can change the menu capability, but most plugins have a second capability check in the code that displays their admin page. You can’t change *that* without editing plugin source code.

    What this means is that “extra capability” functions as an additional filter on top of the required capability, not as a full replacement. If the required capability is “manage_options” and you set “extra capability” to “editor”, the result is that only users who have both the “manage_options” capability *and* the Editor role can see the menu. Typically, there are no users like that, so the menu is completely hidden.

    Possible solutions:
    – Give the Editor role the “manage_options” capability. This works, but it’s obviously a security risk since it gives them access to lots of other admin settings.
    – Use the Pro version to enable the menu for the Editor role. This will also give them the “manage_options” capability, but the menu editor will at least prevent them from opening other admin pages associated with that capability (like Settings -> General). It’s still a security risk, just a slightly smaller one.
    – Ask the plugin author to change the required capability.

    Thread Starter oliveo90

    (@oliveo90)

    Thanks for the detailed explanation. I’ll see if the plugin author will agree to change that. If not, I’ll just buy the Admin Menu Editor Pro version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extra capability field not working for lower roles’ is closed to new replies.