WordPress.org

Ready to get started?Download WordPress

Forums

Adminimize
[resolved] Is it possible to activate Appearance > Menus for an Editor? (5 posts)

  1. slurve
    Member
    Posted 3 years ago #

    Hi. Is it possible to activate Appearance > Menus for an Editor? Seems like it's hidden by default for Editors. I'd like to allow them to make changes to the menus, but not be able to access Themes or Widgets. Thanks in advance for any help.

    Tom

  2. slurve
    Member
    Posted 3 years ago #

    Figured this out. Well, I'm not sure if it's the best solution, but hey, it works. I added the following code to functions.php:

    // get the the role object
    $role_object = get_role('editor');
    
    // add $cap capability to this role object
    $role_object->add_cap( 'edit_theme_options' );

    I also deactivated the theme editor, widgets and theme options in the Adminize settings.

    Tom

  3. likelythat
    Member
    Posted 3 years ago #

    Thanks - just what I was looking for!!! Works like a charm.

  4. shaunkrd
    Member
    Posted 3 years ago #

    Thanks from me too. That code snippet combined with the excellent plugin has saved me loads of time. Thanks for sharing!

  5. jmix
    Member
    Posted 3 years ago #

    Thanks !!!

    Now that the Appearance item is back, i'd like to be able to do the same with the "widget set" plugin (that should appear at the bottom of the Appearance menu).

    The strange thing is that there is a line for it in the Adminize plugin, but it just don't appear when connected with the editor permission...

    Any idea about what where i could find the argument to put in place of the 'edit_theme_options' ?

    $role_object->add_cap( 'please_show_my_plugin' );

    ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags