I am trying to hidea custom menu (awsome 3.0 feature!) from non logged in users.
I have figured out that it can most likely be done with<?php if (is_user_logged_in() ) { ?> but can't figure out where it would go. Any help would be appreciated.
I am trying to hidea custom menu (awsome 3.0 feature!) from non logged in users.
I have figured out that it can most likely be done with<?php if (is_user_logged_in() ) { ?> but can't figure out where it would go. Any help would be appreciated.
<?php if (is_user_logged_in()) { wp_nav_menu([YOUR-CONFG]); } ?>
Thanks for that.
Do I replace "YOUR-CONFIG" with the name of the menu?
Or even better, is there a way of adding this directly to the nav menu itself? Perhaps in the back end or into the source so all are affected.
This topic has been closed to new replies.