Redirect after users complete profile form

I have a user registration form implemented and working correctly on the front end of a website. My main issue is that I would like to redirect a user after completing the profile form.

My idea would be to show a page with some content to let the user know that their account is being reviewed. So this kind of users will have a new role called “members-in-approval” and once the admin reviews their profile and approve them, they would get the role “active member”.

Everything is working fine right now but I cannot redirect them to the page I mention before after completing the profile.

I’m pretty new using WP so any help or advice would be appreciated. Thanks!

5 Answers
5

Please put below code on your theme funcation.php file

add_action('user_register','post_user_reg_redirect');
function post_user_reg_redirect( $user_id )
{           
            $url="http://example.com";          
             wp_redirect($url);
             die();     

}

Leave a Comment