Scroll To Top

WordPress Redirect Logout page to Homepage

Posted in Articles, WordPress3 years ago • Written by Shais17 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.

add_action(‘wp_logout’,’go_home’);
function go_home(){
wp_redirect( home_url() );
exit();
}

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
Shais

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
Shais

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

17 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.

    Thanks.

    • 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 😉

  13. OlahragaAugust 9, 2017 at 1:49 am - Reply

    It’s in fact very complex in this full of activity life to listen news on Television, thus I only use the web for that reason, and
    get the latest information.

  14. serviceAugust 11, 2017 at 9:59 am - Reply

    service de femme de ménage
    Profedsionnelle de l’entretien, notre dynamiqque entreprise saura réaliser pour vous l’ensemble des travaux ménagers.

    G.E.M. s’engage suur une prestation de qualité !

    Notde équipe dde spécialistes chevronnés accomplira un travail à la fois soigné, rapide
    et économique.
    De plus, nous utilisons exclusivement des produits écologiques et hautement performants,
    issus des toutes dernières technologies.
    La vie modedrne véhicule aussi de lourdes menaces.
    D’apparence inoffensive, meubles, appareils ménagers,
    matériaux de construction, jouets ouu objets familiers peuvent dégager des
    phtalates ou autres redoutables composés
    chimiques.

    Franchise de Nettoyage Résidentiel et Commercial, service
    de feme de ménage ,entretien ménager commercial,entretien ménager commercial, ménage résidentiel, service d’entretien ménager montréal
    Nous aidons lles personnes désireuses d’être propriétaires d’entreprises prospères
    àdevenir des professionnels du nettoyage commercial et de la maintenance.
    En rejoignant notre réseau d’entreprises,
    vous bénéficierez d’un avantage concurrentiel ainsi que d’une aide apportée
    ppar un modèle d’affaires éprouvé vous assurant
    de travailler avec un leader du domaine disposant de l’expérience et la stabilité.

    Vous disiez augmentez vos revenus afin d’améliorer votre quotidien ?

    Faites Appel a G.E.M Ménage! service de femme de ménage ,entretien ménager commercial,entretien ménager commercial, ménage résidentiel,
    service d’entretien ménager montréal, service de femme de
    ménage ,entretien ménager commercial,entretien ménager commercial, ménage résidentiel,
    service d’entretien ménager montréal
    Franchises de Nettfoyage Résidentiel et Commercial
    disponible Partout A Montréal ,Rive Nord et Rive Sud.

    Financement Sans Intérêt par G.E.M .
    Un dépôt est obligatoire

    Un Investissement de 24 000$ Vous Rapporte (4800$ et plus dde Revenus par Mois)!

    Matériel et formation fourni

    Nous aidons les personnes désireuses d’être propriétaires d’entreprises prospères à devenir dess professionnels du nettoyage commercial et de la maintenance.
    En rejoignant notre réseau d’entreprises, vous bénéficierez d’un avantage concurrentiel ainsi que d’une aide
    apportée par un modèle d’affaires éprouvé vous
    asurant dee travailler avedc un leadeer du domaine disposant de l’expérience et la stabilité.

    G.E.M Ménage vous offre l’opportunité de trravailler pendant la journée
    de lundi a vendredi .

    G.E.M Vous propose des contrats d’entretien ménager avec des horaires souples
    et un revenu garanti.

    Pour les personnes libres,les nouveaux arrivants ouu
    les sans-emplois G.E.M peut favoriser votre accès au marché du travail
    !

    G.E.Mvous prolose des cotrats stables et rémunérateurs!

    Dans le secteur résidentiel idéal pour un couple, ou un homme seul dans le sercteur commercial
    Vous débuter des maintenant

    Des techniques et méthodes de travail éprouvées.

    Une aide à la constitution ou à l’enregistrement
    de leur entreprise.
    Des territoires d’exercice protégés.
    Entreprise clés enn main.
    Un garantie qui protège votre investissement

    Exigences dee l’entrée de notre réseau :
    Les demandes ssont examinées attentivement et une enquête relative à la candidature est menée.

    Les candidats doivent ppasser une entrevue dde sélection.
    Avant tout début d’activité, les candidats doivent assister à des sessions de formation.

    Au G.E.M. nous nous assurons que nos franchisés puissent offrir à leurs clients un service professionnel d’une
    qualité supérieure à celle de la concurrence.

    Franchise disponible au résidentiel et commercial

    N’hésitez ppas à nous contacter
    469 Jean-Talon Ouest Suite # 222
    Montreal QC

  15. tapetenSeptember 13, 2017 at 2:02 pm - Reply

    I’m no longer positive where you are getting
    your information, however good topic. I must spend some time
    studying much more or working out more. Thank you for fantastic information I used to be
    searching for this information for my mission.

  16. FrivSeptember 13, 2017 at 9:53 pm - Reply

    Hmm it appears like your website ate my first comment (it was extremely long) so I
    guess I’ll just sum it up what I had written and said,
    I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but
    I’m still new to the whole thing. Do you have any recommendations for inexperienced blog writers? I’d genuinely appreciate it.

Leave A Response