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:

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook:

Follow us on Twitter:

Checkout our website for more WordPress Tutorials

Summary of this tutorial:

For creating the link you would want to use the link below replacing with your website:

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.



  • Rajarshi Roy on October 3, 2017

    It is really very helpful by getting the useful information from the videos which have help us to manage my problems

  • Sajwal Pageni on October 3, 2017

    Thanks for rhis insightful video. Just subscribed, it will help me to grow my blog with the help of your informative article.

  • Dustin Boeger on October 3, 2017

    Nice, quick easy to use.

  • A to Z Gist on October 3, 2017

    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

  • Kamran Abdul Aziz on October 4, 2017

    Never knew about this until today and i'm into WordPress since last 4 years #DumbFeeling

  • Terri Tutich on October 4, 2017

    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?

  • Gabriel Damalis on October 4, 2017

    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

  • Cat Smith on October 4, 2017

    This is a face-palm moment. I had never thought about logging out. Great lesson!

  • Georgia Tsiamanta on October 5, 2017

    Thanks for the video!

  • Andy Whitfield on October 5, 2017

    Thanks very much for sharing this info.

  • Hagop Kazanjian on October 5, 2017

    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.

  • Santosh Nayak on October 5, 2017

    Useful info for noobs

  • Opeyemi Ajayi on October 5, 2017

    this is really helpful, i love this

  • Don Kiely on October 6, 2017

    Proving yet again that there are inevitably multiple ways to do things in WordPress. Thanks for this!

  • Milan Petrovic on October 6, 2017

    Nice video, thanks!

  • Blainezor on October 6, 2017

    Very Simple

  • Pradeep Maheepala on October 7, 2017

    Loved it!

  • Mrittika Saha on October 8, 2017

    Well, this is helpful for new WordPress users. I'm using the free version. Thank you.

  • Bronwyn Vourtis on October 8, 2017

    Thank you, this has been very useful information!

  • Madan on October 9, 2017


  • Renan Cardoso on October 9, 2017

    Helpful info!

  • Miroslav Glavić on October 9, 2017

    Thanks for sharing

  • Dani AV. on September 26, 2019

    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?

  • Health Glows on September 26, 2019

    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?

  • unknown man on January 12, 2020

    this doesn't work anymore

  • Victor Okun on May 31, 2020

    Thanks a bunch – this was so helpful

  • Carson Tippetts on October 5, 2020

    Thank you!

  • AdrianV88 on March 26, 2021

    What about that hideous logout confirmation page? How to get rid of it and simply redirect customer to current page?

  • Alexander Ramirez on April 2, 2021

    The best.

  • Alexa Ditchburn on May 7, 2021

    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?

  • Miguel Angel on September 11, 2021

    Code: wp-login.php?action=logout

  • Ziebenling on September 29, 2021

    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?

WhatsApp us
Live Chat

Office hours operation Mon-Sun 8:00 am ET – 4:00 pm ET

To start your Premium WP or Cpanel service, use our domain search engine, if the domain you want is available, contact us by Whats app to activate your project.

The easiest, fastest, and most secure way to communicate with us.
Please enter your domain.
Please verify that you are not a robot.

Terms Privacy




Mon-Sun from 8:00 am /4:00 pm USA-ET

WhatsApp us

Small Business – WordPress – CPanel – Hosting

© Webfinet Affordable Private Small Business Solutions All Rights Reserved 2021 - Powered By