WordPress.org

Forums

User Role Editor
[resolved] Allow editing menus (7 posts)

  1. jodzeee
    Member
    Posted 1 year ago #

    I'd like to be able to allow my client to access/edit menus - but not necessarily other theme_options. Is there a way to do this?

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

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    It is impossible with just turning on or off existing user capabilities. WordPress uses the same "edit_theme_options" capability as for the "Themes", as for the "Menu" menu items. There is need to change that capability, link to the menu item 1st. Look on "Admin Menu Editor" plugin. It may help to assign new capability for needed menu item.

  3. mengsel
    Member
    Posted 1 year ago #

    Is there then a away to hide the menu item by editing the functions.php file?

    In my case, it's very simple: all user roles, except (super)admin, should only be able to see widget and menu under theme options.

    I just don't want them messing around with the theme I finetuned to closely ;-)

  4. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

  5. mengsel
    Member
    Posted 1 year ago #

    Excellent! Thank you very much. I'll try if this option is less laborious than the solution I came up with.

    For the record, and perhaps as a useful tip for any future readers -- in the meantime, I've solved my perdicament by:

    * Downloading the free version of Admin Menu Editor

    * Changing the required capability for the (sub)items to something only admin has (in this case switch_themes).

    So: edit_theme_options is still the capability rewarded to Editor through URE, and it's required default for Menu and Widgets. But, after changing in AME, it is no longer sufficient for Customizer and Editor, which now require switch_themes capability.

  6. Karalee
    Member
    Posted 1 year ago #

    I am also trying to give editors permission to update the menus on their sites. I tried to download the plugin linked above (http://role-editor.com/allow-access-appearance-menu-items/), but I got an error when I tried to install it. WordPress said it wasn't a valid plugin. Is there any other way to enable access to menus?

    Thanks!

  7. Karalee
    Member
    Posted 1 year ago #

    Hi again. Please disregard previous post. I am dealing with a detached retina, so eyes aren't working too well this week. Anyway, I re-read your instructions, and copied the php file to wp-contents/mu-plugins, and it worked like a charm. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Role Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.