Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter bryananthonylewis

    (@bryananthonylewis)

    Update:

    Based off of this support ticket: https://wordpress.org/support/topic/user-role-editorhow-to-add-a-capability-not-listed?replies=11#post-5657417

    I tried to add cd_setting_page since I believe that is how they are adding the menu item in the plugin listed above “commenter data”. However when I do so I get the following error: Wrong nonce. Action prohibitied.

    I’m unsure what that means but am going to try and find a way to get this to work. 🙂

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Commenter data plugins uses ‘administrator’ role as the permission for its menu item “Commenter data settings” under ‘Settings’ menu. So there is no chance to give access to it to non-admin users without editing plugin code directly or using some of admin menu editing plugins.
    You need to look on the next row:

    add_options_page( 'Commenter data Settings', 'Commenter data Settings', 'administrator', 'commenterdata-settings', array( $this, 'cd_renderer' ));

    3rd parameter is the thing you searched for.

    Thread Starter bryananthonylewis

    (@bryananthonylewis)

    I see, doesn’t the pro version of your User Role Editor plugin allow for admin menu editing? If so, I will get that.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Pro version doesn’t allow menu editing. It allows to give to the role a capability required for access to that menu (menu item) and block unneeded menu items, in case that capability adds some extra menu items too, which definitely will be in case of ‘manage_options’ for example, which is very popular between plugins developers.

    If you wish to replace menu permissions on the fly, or change menu item labels, look on the ‘Admin menu editor’ plugin or similar.

    Thread Starter bryananthonylewis

    (@bryananthonylewis)

    I’m really just hoping to give a custom role access to that specific plugin. I’ll try the admin menu editor and see if that works.

    Bryan,
    Did you find a way of implementing what your after… I need the same functionality.

    Thread Starter bryananthonylewis

    (@bryananthonylewis)

    Yes, I had to create a capability called ‘administrator’. Then I set the role to include that capability. Then the menu item worked for me. Great support by this plugin author!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can't find plugin access’ is closed to new replies.