Support » Plugin: User Role Editor » Allow editing menus

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    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.

    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 😉

    Plugin Author Vladimir Garagulya

    (@shinephp)

    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.

    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!

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Allow editing menus’ is closed to new replies.