How do I Remove logout menu button when already logged out? and how do I remove the login menu button when already logged in?
I used custom links to add the login, logout and profile buttons to my main menu as follows:
Login: https://www.mywebsite.com/wp-login.php
Logout: https://www.mywebsite.com/wp-login.php?action=logout
Profile: https:/www.mywebsite.com/profile
The about three buttons “Login, Logout and Profile” are always showing event if the user is logged int our or logged out.
But when the users visits my website and they have not logged in, I do don want to show the “Logout” menu because they are not event logged in yet. I also don’t want to show the “Profile” menu because the don’t have access to their profile til they login.
And when the users are already logged in I don’t want to show the “Login” menu button because they are already logged in.
How can I do this?
Thank you.