How to Create a Redirect User Login in WordPress – Have you ever wanted to redirect users to a specific page after the user has logged in to the admin section of your WordPress site? If so, then in this article, I will show you how to redirect users or redirect users after successfully logging in to the WordPress admin.
Redirecting or redirecting to a different page for each user will make your site more structured, organized and professional. In this way it will also make it easier for users and also you can make settings according to your wishes for each user to enter the appropriate section.
How to Create a Redirect User Login in WordPress
The first thing you need to do is install and activate the plugin Peter’s Login Redirect. After your plugin is activated you will see a new menu called Login / Logout Redirect to the Settings sub menu. Please enter the menu Settings »Login / logout Redirect to setup the plugin.
Set a Login / Logout Redirect Username
In the setup of this plugin you will get several options. The first option on the settings page allows you to navigate to a specific user. You can select a username from the drop-down menu. After that you can enter the URL to redirect the user to login and logout. After that Click on the Add username rules button to save these settings.
Set up the Specific Role Login Redirect
You can also set up login redirects based on user roles (role users) on WordPress. Just select a user role from the drop-down list and then enter the URL redirect. For example, you can redirect a user with the role user “editor” to the admin area and a user with the “Client” role user (customer) to the custom admin page that you have created.
Set the Specific Level Login Redirect
This Peter’s Login Redirect plugin also allows you to set a user redirect based on user level and capabilities. This option is very useful if you are using a user role (user role) with custom capabilities in WordPress.
Just select the user level from the drop-down menu and enter the login and logout URL.
Set Login Redirect All User
On the plugin’s settings page, there is an option to set a redirect for All Users. If the user doesn’t match the rules you created above, then you can redirect them by entering the URL in this All other users settings section.
You can also use this setting to set redirects for all users regardless of user roles.
Set up the Login Redirect Register
When new users sign up or will register on your site, WordPress redirects them to the login page. You can set up a URL redirect to send them to another page on your site in the section of the Registration page that you have created specifically.
For example, you can direct them to a welcome page with links to different pages that they can do on your website.
Above are several ways to setup login and logout redirects with the Peter’s Login Redirect plugin. By using the redirect plugin above, you can make your WordPress site look different and professional to users. And hopefully this article is useful and good luck. 🙂