How to create a Link to Logout of WordPress wp lifetime webs
Do you want to manually add a link to log out of your WordPress site? This can be helpful if you are running a membership site to let your users logout and you can add it anywhere on your site. In this article we will show you how to add the logout link to your WordPress website.
Text version of this tutorial:
http://www.wpbeginner.com/wp-tutorials/how-to-add-the-wordpress-logout-link-to-navigation-menu/
If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.
Check us out on Facebook:
https://www.facebook.com/wpbeginner
Follow us on Twitter:
http://twitter.com/wpbeginner
Checkout our website for more WordPress Tutorials
http://www.wpbeginner.com/
Summary of this tutorial:
For creating the link you would want to use the link below replacing example.com with your website:
http://example.com/wp-login.php?action=logout
Using the above link as a template you can add it as a custom link under Appearance, Menus or adding it as a link in the widgets area in a text widget.
WordPress also has the built in meta widget that you can use for useful links such as the logout link in your widget area.
source
It is really very helpful by getting the useful information from the videos which have help us to manage my problems
Thanks for rhis insightful video. Just subscribed, it will help me to grow my blog with the help of your informative article.
Nice, quick easy to use.
after years i stopped blogging, this video has really given me a good knowledge of how to logout of my wordpress blog. Thanks for sharing
Never knew about this until today and i'm into WordPress since last 4 years #DumbFeeling
I get a lot of notices from my security plugin from people hitting the logout URL. Do you know why they would be trying to get to that page/address?
OH! interesting!, thanks for this. Now this helpful idea. And it's to easy to add that log out link. Great for pages with many users
This is a face-palm moment. I had never thought about logging out. Great lesson!
Thanks for the video!
Thanks very much for sharing this info.
The login and logout URL-s is one of the very important links that as a WP developer I need a lot.. thanks for the video.
Useful info for noobs
this is really helpful, i love this
Proving yet again that there are inevitably multiple ways to do things in WordPress. Thanks for this!
Nice video, thanks!
Very Simple
Loved it!
Well, this is helpful for new WordPress users. I'm using the free version. Thank you.
Thank you, this has been very useful information!
nice
Helpful info!
Thanks for sharing
All of that is very good, but how do you avoid the wordpress page with the following text before logging out:
You are attempting to log out of …
Do you really want to log out?
Thank you for this useful video. Do you have a tutorial on how to have a login button when you are logged out and a log out button when you are logged in?
this doesn't work anymore
Thanks a bunch – this was so helpful
Thank you!
What about that hideous logout confirmation page? How to get rid of it and simply redirect customer to current page?
The best.
Is there a way to bypass the "are you sure" notification?
You are attempting to log out of WEBSITE.
Do you really want to log out?
Code: wp-login.php?action=logout
WordPress sends me to a 404 page When i use the correct url… I use buddypress which uses a custom log out page… Can this be the reason it doesn't work?