Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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.

function admin_default_page() {

  return '/your-page-url';


add_filter('login_redirect', 'admin_default_page');

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:

  • How to Install a WordPress Plugin

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.

The post How to Redirect Users after Successful Login in WordPress appeared first on FreeWebMentor.

This post first appeared on Programming Blog Focused On Web Technologies, please read the originial post: here

Share the post

How to Redirect Users after Successful Login in WordPress


Subscribe to Programming Blog Focused On Web Technologies

Get updates delivered right to your inbox!

Thank you for your subscription