Show/Hide Links Depending on the User’s Status

WordPress by default does not provide the ability to show or hide menu items based on the current user’s status. For many sites it becomes necessary to hide certain links such as “Sign In” or “Register” once a user has already authenticated themselves.

To hide these links we need to install a very useful plugin called If Menu. This simple plugin will allow us to decide the visibility of any menu item based on the currently logged in user.

Once the plugin is installed simply visit “Appearance > Menus” and find the menu item you want to alter. You can then choose to show/hide the item based on the user’s authentication status or their role (useful if you are using Restrict Content Pro). 

Was this article helpful?

Related Articles