• Resolved nickburton

    (@nickburton)


    Hi,
    I have installed the ITRO Popup plugin but can’t seem to get Adminimize to either show or hide it for a specific role (Editor). All other menu options can be shown/hidden for Editors. I have tried adding a custom slug (popup-admin) but am unsure whether that is the correct custom slug as that hasn’t worked.
    Any help gratefully received!
    Regards,

    https://wordpress.org/plugins/adminimize/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Bueltge

    (@bueltge)

    Have this plugin a menu item? Have you tried a update of the settings, of Adminimize.

    You can find the slug of each item with the debug helper, activate it, login as user, there have this problem, open the console in your browser (F12); tab Console. You should find two entries, WP Menu and WP Submenu, in this is all items, his String and also the slug.

    Thread Starter nickburton

    (@nickburton)

    Hi Frank,

    Thanks for that – I think my problem is because the ITRO Popup plugin doesn’t have its own ‘main’ menu option but rather it appears as a sub-menu option on the “Settings” menu. Editors don’t have access to the “settings” menu by default so I guess than, unless there’s a way to give Editors access to the “Settings” menu, I won’t be able to give them access to the plugin either.

    Regards,

    Nick

    Thread Starter nickburton

    (@nickburton)

    Hi Frank,

    For information, and if it will be useful to anyone else, I’ve given the Editors access to the Settings menu by adding the following code to my WordPress theme’s functions.php file (using a child theme of course!):

    function add_theme_caps() {
    $role = get_role( ‘editor’ );
    $role->add_cap( ‘manage_options’ );
    }
    add_action( ‘admin_init’, ‘add_theme_caps’);

    Then I used the Adminimize settings to prevent access to the various options in the Settings menu that I didn’t want the Editors to see.

    Thanks for your help.

    Regards,
    Nick

    Plugin Author Frank Bueltge

    (@bueltge)

    OK, thanks for feedback. A topic of the capabilities of the roles.
    For users, there will not use code, she should do this with the plugin Members. Makes easy to add capabilities like manage_options to each role.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I show/hide the ITRO Popup plugin menu option’ is closed to new replies.