Redirect after registration ( with auto login )

Hi Guys,

Hope you all are enjoying weekend ,
Please help in "Redirect After Registration"

For this you will need to do a small setup in your system ,

1) Install demo wordpress and install this plugin :-

2) In setting of this plugin , choose "MODAL" template ,

3) Then try to create new account from front-end registration popup ,

4) Here I want to auto redirect on homepage after successful registration ,

Please do a simple setup in your local system for that ,
This is my website :-


  • Adam Czajczyk
    • Support Gorilla

    Hey Raitis,

    I hope you're well today and thank you for your question!

    I've downloaded the plugin and took a look. I think it doesn't include such a feature out of the box. there's a bunch of redirect options but all work for "on login"/"on logout" condition. That said, I think this would require adding a little custom coded "hack"/"hook", although this is beyond the scope of this support form.

    That being said, for custom job you may want to post a question at our "Jobs & Pros" job board (no WPMU DEV staff) here:


  • Raitis
    • Site Builder, Child of Zeus

    Hi Adam Czajczyk

    Thanks for looking into this ,

    Yes I know , it has default options for only 'login & logout' only , not for registration redirect ,
    I guess there should not much code for it ,

    I used this code for auto-login , and it is logging-in too ,

    add_action( 'user_register', 'auto_login_new_user',200,1 );
    function auto_login_new_user( $user_id ) {
    //wp_redirect( home_url());

    Just I need yours support to redirect on 'Homepage' or 'reload same page' whichever is easy .


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.