• Resolved AJenkins94

    (@ajenkins94)


    Hello all,

    I am having a hard time on figuring this problem out. After users register/login for wordpress it takes them to their “Dashboard” within wordpress. I do not want that to happen i want them redirected to the site’s homepage. How would I go about solving this?

    Here is the site address

    If you need anymore information from me let me know!

    -Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • put this in your theme functions.php file

    add_filter( 'registration_redirect', 'yh_registration_redirect' );
    function yh_registration_redirect() {
        return home_url();
    }
    
    add_filter( 'login_redirect', 'yh_login_redirect' );
    function yh_login_redirect() {
        return home_url();
    }

    Thanks!

    I have tried so many solutions now for hours. Plugin and crazy code snippets all over the internet. Then it hit me. I used google search and searched for hits this last month. With your hit first my problem was solved in 2 minutes.

    Hi zzyber,
    Glad to help !
    crazy SEO over here, just 51 minutes in the air.

    Thread Starter AJenkins94

    (@ajenkins94)

    I will give this a try! Thanks!

    Thread Starter AJenkins94

    (@ajenkins94)

    It worked! Thank you for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect after Login/Registration’ is closed to new replies.