How to Redirect Users after Successful Login in WordPress

If you want to redirect the user to specific pages after the successful login in your WordPress site, then keep your close attention in this tutorial as I am going to share how to redirect users after successful login in WordPress.

How to Redirect Users to Successful Login in WordPress

Open the functions.php file from your activated theme’s folder and add the below code at the end of the file.

If you want to redirect users on the based on the user role, then you need ot install the Peter’s Login Redirect WordPress plugin in your WordPress site.

If you have just started with WordPress, then check out:

After installation of this plugin, navigate to the Settings =>Login/logout Redirects page to setup the plugin configurations.

Now go to the Specific roles section to setup the user role based redirections.



I hope this tutorial helps you, if you have any questions regarding WordPress, then feel free to put your comments in below comment section. Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , , , , ,