WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Editors can't edit Menus (5 posts)

  1. shmk
    Member
    Posted 4 years ago #

    I've created a user as Editor but he can't view the Appearance->Menus.

    So it looks like Editors could create, edit and delete pages, but they can't add, edit and delete them in Menus...

    I think this logic is quite wrong.

    PS: Anyone have a workaround for solving this problem?

  2. shmk
    Member
    Posted 4 years ago #

    I've found this plugin that let you change the default permissions set to basic wordpress roles.

    http://wordpress.org/extend/plugins/user-role-editor/

    Enabling for the Editor role the field 'edit_theme_options' will enable editors to use the Appearance menu.

  3. enailor
    Member
    Posted 4 years ago #

    Anyone found a filter or other solution besides adding another plugin?

  4. enailor
    Member
    Posted 4 years ago #

    So I did find that you can add some capabilities to the editor role that opens up the Menu to the editor.

    Add the following code to your theme function, and the editor will gain access to the menu, plus the following areas: Theme Options (but can not switch, edit or install themes), Menus, Background, Widgets and Custom Headers.

    While I would still prefer to only provide access to the menus without the other items, this may be the fix you need.

    // get the the role object
    $role_object = get_role( 'editor' );
    
    // add $cap capability to this role object
    $role_object->add_cap( 'edit_theme_options' );
  5. shaunkrd
    Member
    Posted 3 years ago #

    Thanks, this is just what I needed!

Topic Closed

This topic has been closed to new replies.

About this Topic