• Hi,

    I want to restrict my admin menu area for users logged. Each users, have got a service (service is a term wordpress) in the profile

    My idea will restrict the management of menus wordpress by users logged. For example, an administrator user with a service mechanic must work only the menu mechanic

    I think that assign a category by menu but how’s filter the admin query for my problem ?

    Have you got some ideas for my problem

    Thanks so lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can do this with the Nav Menu Roles Plugin.

    Of course there are other ways, this is just my recommendation

    Moderator bcworkz

    (@bcworkz)

    When you add menus pages, you must specify a user capability required for the menu to be visible to that user. For example, when adding the “mechanic” menu, require the user have “mechanic” capability.

    Capabilities are easily added to both roles and individual users. You can assign custom capabilities to individual users much like you have assigned terms to users. Or, some simple code run one time can be used to add custom roles and capabilities to the DB, then specific roles can be assigned through the usual methods.

    Custom code like this can be implemented through a child theme or your own site specific plugin, which can contain any other custom code as well. Using an existing plugin like Michael suggests is perfectly acceptable as well.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘restrict menu admin area by users logged’ is closed to new replies.