wp hide menu items if not logged in code example
Example: hide menu items if user not logged in
<style>
if(! is_user_logged_in() ) : ?>
.logged-in-menu{
display:none;
}
<?php endif; ?>
</style>
<style>
if(! is_user_logged_in() ) : ?>
.logged-in-menu{
display:none;
}
<?php endif; ?>
</style>