Problem:
I want to display different menus based on user login status and add user-friendly login and logout buttons in the menu.
Solution:
Use a plugin like WPCode to manage different menus based on user status. For the logout button, add a link with the URL http://example.com/wp-login.php?action=logout. Refer to the following documentation for generating the logout URL: https://developer.wordpress.org/reference/functions/wp_logout_url/.
Relevant Documentation:
How to Add the WordPress Logout Link to Navigation Menu: https://www.wpbeginner.com/wp-tutorials/how-to-add-the-wordpress-logout-link-to-navigation-menu/
WP Logout URL Documentation: https://developer.wordpress.org/reference/functions/wp_logout_url/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 3 replies, has 2 voices.
Last updated by 7 months, 1 week ago.
Assisted by: Christopher Amirian.