Support » Plugin: Menu Item Visibility Control » Conditional tags with Menu Item Visibility Control AND User Switching Plugins

  • Hello and thank you for a unique plugin. I need to show a menu for only the admin of a multisite installation (Not super admin). However I am using a plugin called “User Switching” (https://wordpress.org/plugins/user-switching) and obviously when I switch the admin user to a subscriber role the Menu Item Visibility plugin does not recognize the change and shows the menu anyway. Which conditional logic could I use to make this work? eq: in_array(‘administrator’ ‘subscriber’, $GLOBALS[‘current_user’]>roles) OR something like this?

    Thank you kindly! Carlos

    https://wordpress.org/plugins/menu-items-visibility-control/

  • The topic ‘Conditional tags with Menu Item Visibility Control AND User Switching Plugins’ is closed to new replies.