Support » Plugin: Admin Menu Editor » Custom top level menu item for Appearance->Menus

  • I am having a problem creating a top level menu item that is visible for user rolls that are not administrator.

    I want a way that a ‘Shop Manager’ (one I created with ‘User Role Editor’) to edit the site navigation menus. Usually this has to be done through Appearance->menus but I don’t want them to have access to anything else in the Appearance area.

    It seemed odd to me that I should make them select Appearance first and then Menus so I created a <custom> menu item that mimics the Appearance->menus Target Page. I called it ‘Site Menus’ and placed it in the top level menu list. It would be far more user friendly and intuitive this way.

    I then set the Appearance->menu settings in the Menu Editor to a Capability that the ‘Shop Manager’ has but changed the Appearance top level to ‘Administrator’.

    The new ‘Site Menus’ item appears for the Administrators but not for the Shop Managers.

    Am I doing something wrong?

    http://wordpress.org/plugins/admin-menu-editor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Are you using the free version or the Pro version of the plugin? Unfortunately, what you’re trying to do is not possible in the free version. When dealing with pre-existing menus like “Appearance -> Menus”, the free version can only restrict access. It can’t give a role access to a menu it could not already use.

    However, since you already have User Role Editor installed, try giving “Shop Manager” the “edit_theme_options” capability. This should allow them to access the “Site Menus”. Then set the capability for other “Appearance” items to sub-menus to “Administrator” to make sure they can’t access them (just changing it for the top-level item does not always work if the sub-menus have different capabilities).

    Thanks. I can work with that. It shows both the “Appearance” and my new “Site Menus” items but I can at least drop the Appearance menu to the very very bottom of the list.

    PS I have the free version of your plugin. By the way I love it. Certainly makes my life easier than hard coding all this into the functions.php file like I did for ages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom top level menu item for Appearance->Menus’ is closed to new replies.