• Hi there,

    I’ve got the following case:

    When someone logges in as the custom role: wholesale, I want to hide a some menu items. I also want to have some menu items only visible for the role wholesale.

    I’m not into coding this myself, sorry.

    anybody who knows how to achieve this?

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    Hi!

    To hide the menu item only to users with “administrator” role:

    
    ! in_array('administrator', $GLOBALS['current_user']->roles)
    
Viewing 1 replies (of 1 total)
  • The topic ‘Hide menu item for specific user role’ is closed to new replies.