Support » Plugin: Menu Item Visibility Control » Show items if logged and by user role

Viewing 2 replies - 1 through 2 (of 2 total)
  • Alternatively, you could use Nav Menu Roles to control menu visibility by roles.

    I have used the multiple conditional tags to mention user roles:

    in_array(‘administrator’, $GLOBALS[‘current_user’]->roles); in_array(‘subscriber’, $GLOBALS[‘current_user’]->roles)

    Above will display menu item only for administrator and subscribers logged-in
    you can add more roles like these as per your requirements.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show items if logged and by user role’ is closed to new replies.