How work this function?
This function is responsible for making your menu appear conditionally, depending on whether the user is logged in or not. That is, with this function, for example, you can make your store show a link in the menu to Login when the user has not yet logged in and just when the user logs in, to change the item automatically and My Account is displayed instead “Login”.
To use this function, you will need to have previously created 2 menus, one to show users who are logged in and another for those who have not yet logged in.
Loggedmenu : Home About Shop Blog Login
Nonloggedmenu: Home About Shop Blog My Account
How to configure?
Once you have the two menus created, all you have to do is go to the Woo Shortcodes Kit settings and follow these steps:
1º Activate the function making the slider show in green
2º It displays the advanced options of the function
3º Select the location of the menu
4º Choose the menu to show for users who are logged in
5º Choose the menu to display for users who are not logged in
6º Slide to the end, where you will find the button to save the settings
With the saved settings, you can verify that everything works correctly just by visiting the website as a connected user (the menu will appear for users who are logged in) and then log out or visit your website with the browser in incognito mode (the menu will appear for users who are not logged in)
If you want to expand the possibilities of your menu, you can do it with the following functions included in this section.