Scroll To Top

WordPress Redirect Logout page to Homepage

Posted in Articles, WordPress2 years ago • Written by Shais13 Comments

WordPress Logout page is remain in the Login page when you logout from your WordPress account. It doesn’t have any built-in option to change it. but I have solve this problem with adding some basic code to the function.php file of the current applied WordPress Theme. It work perfect but doesn’t have function and not more flexible. Instead you can use some WordPress plugin.

WordPress Redirect Logout page Using Code

if you want to go directly to the front page when you log out, place this code into your functions.php in your current theme.

function go_home(){
wp_redirect( home_url() );

The code must be placed at the end of all code. See the screenshot.

Redirect WordPress Logout page - Technig

Redirect WordPress Logout page to Home Page

WordPress Redirect Logout page Using WordPress Plugin

With plugin you can choose which URL users are directed to when logging out of WordPress. You redirect the users to some page such a network homepage, Help and Support, Sales page, Special offer for existing users and even to the specific product of the company.

So for more function and options, the best case is using plugin. The best plugin I recommend you is Logout Redirect plugin.

Network Settings Network Admin WordPress

Network Settings Network Admin WordPress

It is easy, simply install the plugin and follow the How to redirect WordPress Logout page to any page you want.

Read WordPress document for Function Reference/wp logout url help.

Hop it would be helpful and can solve your WordPress problems.

TAGS: , ,
About this Author

I'm a network and Information Security instructor. Here is my online pictorial notebook. I would like to write and share my experience through this website for computer enthusiasts and technology geeks.

Like us on Facebook
on Facebook

Follow me on Twitter
Follow @technigs on Twitter
Add me on Google+
on Google+

13 Comments so far. Feel free to join this conversation.

  1. lace wigsApril 11, 2015 at 3:03 pm - Reply

    That is a good tip particularly to those fresh to the blogosphere.
    Short but very accurate information… Thanks for sharing this one.
    A must read article!

  2. web devDecember 15, 2015 at 5:50 pm - Reply

    Can you tell us more about this? I’d like to find out more details.

  3. Heel PainDecember 23, 2015 at 2:25 am - Reply

    It has clear massaging gel and it works very
    well with open toe shoes. Plantar fasciitis can be treated with rest, orthotics, anti-inflammatory medications, steroid injections and sometimes surgery.
    “Frozen” immobile toe and ankle joints gain mobility.

  4. GuestJanuary 9, 2016 at 7:38 am - Reply

    Hi, i read your blog occasionally and i own a similar one and
    i was just wondering if you get a lot of spam comments?
    If so how do you protect against it, any plugin or anything you can recommend?
    I get so much lately it’s driving me crazy so any help is very
    much appreciated.

  5. take proper safetyJanuary 10, 2016 at 4:51 pm - Reply

    I blog quite often and I seriously thank you for your information. This article has
    really peaked my interest. I’m going to book mark your website and keep checking for new details about once per
    week. I opted in for your Feed too.

  6. pulsa murahJune 24, 2016 at 7:07 am - Reply

    Hello there! I could have sworn I’ve been to this site before but after reading through some of
    the post I realized it’s new to me. Anyhow, I’m definitely delighted I found it and I’ll be bookmarking and checking back frequently!

  7. LindaAugust 9, 2016 at 8:42 pm - Reply

    I woll right away clutch your rss feed as I ccan not in finding your e-mail
    subscription link oor e-newsletter service. Do yyou have any?
    Kindly alloww me know in order thbat I may subscribe.


    • Shais
      ShaisAugust 10, 2016 at 5:58 am - Reply

      Hi Linda,

      You can subscribe to our newsletter from the popup at the end of page.

  8. agencia de viajes chihuahuaSeptember 20, 2016 at 11:36 am - Reply

    Hmm it appears like your blog ate my first comment (it was extremely long)
    so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog.

    I too am an aspiring blog writer but I’m still new to the
    whole thing. Do you have any points for inexperienced blog
    writers? I’d genuinely appreciate it.

  9. tap doanApril 27, 2017 at 1:59 pm - Reply

    whoah this blog is great i really like studying your posts.
    Stay up the good work! You realize, a lot of persons are searching around for this information, you can help
    them greatly.

  10. CraigslistMay 27, 2017 at 11:52 am - Reply

    Excellent article. I absolutely love this website.

    Stick with it!

  11. PagarMay 31, 2017 at 5:45 am - Reply

    Appreciation to my father who stated to me on the topic of this website,
    this website is really awesome.

  12. offline installerJune 23, 2017 at 2:36 am - Reply

    I’d like to thank you for the efforts you have put in writing this site.
    I really hope to see the same high-grade content from you in the future as well.
    In fact, your creative writing abilities has inspired me to get
    my own, personal site now 😉

Leave A Response