Support » Plugin: Menu Item Visibility Control » Different Menus for Different User Roles

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

    (@shazdeh)

    Try this snippet:
    in_array('administrator', $GLOBALS['current_user']->roles)
    it checks whether current user has the administrator role.

Viewing 1 replies (of 1 total)
  • The topic ‘Different Menus for Different User Roles’ is closed to new replies.