User Registration Documentation
If you would like to create a log out link in your main menu there is a very simple way to do this using the User Registration plugin.
Navigate to Appearance > Menus > and select Menu (Primary Menu (header)) and check the menus from User Registration Endpoints, you want to appear in primary menu.
You can similarly add all provided endpoints such as (Lost Password, Change Password etc.)and endpoints you created.
Powered by BetterDocs