Hi Steve,
that feature is coming with Menubar 4.8, when you will be able to generate a menu link with PHP code, e.g.
$some_url = some expression;
$other_url = other expression;
if (some-condition)
return $some_url;
else if (other-condition)
return $other_url;
else
return '';
If you return an empty value, no menu item will be generated.
Please stay tuned!
PS: if you need to implement that feature with Menubar 4.7, you could create two different menus, and show only one of them putting this PHP code in your theme:
if (condition)
do_action('wp_menubar','firstmenu');
else
do_action('wp_menubar','secondmenu');
Hi Steve,
Menubar 4.8 is now available, you can give it a try!