Function to always redirect home after login or logout? (3 posts)

  1. modifiedcontent
    Posted 4 years ago #

    Is there a function that can be dropped into functions.php to permanently change the redirect behavior after login and logout?

    After logout WP by default redirects to wp-login.php, which is the absolute last place you want to go when you log out.

    Log-in redirect to wp-admin, which makes sense if you're the administrator of your own blog, but not so much in a multisite members context.

    Does anyone have a function so that login/logout redirects to the homepage or, even better, just keeps you on the same page?

  2. nothroughroad
    Posted 4 years ago #

    Just came across this re login, which works for me

  3. joshua000
    Posted 4 years ago #

    I also had trouble but now since I open wordpress almost everyday I'TS a piece of cake for me
    Even though i a new member

Topic Closed

This topic has been closed to new replies.

About this Topic