Documentation / Redirect Rules After Login
Redirect Rules After Login
Overview
By default, WordPress redirects users to the admin dashboard after login. The Redirect rules after login feature lets you define custom redirect destinations based on user roles or specific users. This is useful when you want different types of users to land on different pages.
Adding a Redirect Rule
- Navigate to Settings → Login Customizer.
- Open the Functionality tab.
- Expand the Redirect rules after login panel.
- Click Add new redirect rule.
A new redirect rule panel appears with the following fields.

Configuring a Rule
Each redirect rule has three main settings:
Name
Give the rule a descriptive name for your own reference (for example, “Editors to Dashboard” or “Subscribers to Homepage”). This name appears in the rule’s panel heading.
Redirect Target URL
Enter the full URL where matching users should be sent after login. For example, https://yoursite.com/welcome or https://yoursite.com/wp-admin/edit.php.
User Coverage
Control which users this rule applies to:
- Apply this redirect rule to all users — When toggled on, every user who logs in matches this rule.
- Specific roles — When the “all users” toggle is off, a role selector appears. Search for and select one or more user roles (Administrator, Editor, Subscriber, etc.).
- Specific users — A user selector also appears, letting you target individual users by searching for their username.
Below the user coverage settings, an informational notice displays the number of users this rule covers and the percentage of your total user base.
Rule Evaluation Order
When multiple redirect rules exist, they are evaluated in order from top to bottom. The first rule that matches the logging-in user is applied. You can drag and drop rules to reorder them.
For example, if you have:
- A rule for Editors redirecting to
/editor-dashboard - A rule for all users redirecting to
/welcome
An Editor would be redirected to /editor-dashboard because that rule is evaluated first and matches.
Removing a Rule
To remove a redirect rule, click the delete button on the rule’s panel. Click Save all settings to confirm the removal.
Exporting Personal Data
WordPress’s Tools → Export Personal Data includes redirect rules that explicitly list the account matching the requested email address. Each assignment includes the username, rule name, and destination URL. Other users assigned to the same rule are excluded from the export.
The export includes every explicit assignment, even when an earlier rule determines the user’s actual destination. Rules that match only through a role or the all-users setting are excluded. Site-activated installations export the current site’s settings; network-activated installations export the current network’s settings.
Stored assignments remain included when the account still exists but is not a member of the current site.
Erasing Personal Data
WordPress’s Tools → Erase Personal Data removes the account matching the requested email address from every rule’s list of specific users. This includes assignments in rules that also apply to all users or a role, and accounts that still exist but are not members of the current site.
The rules, destination URLs, other users, selected roles, and all-users settings stay in place. The account may still match a rule through its role or the all-users setting. Site-activated installations erase assignments from the current site’s settings; network-activated installations use the current network’s settings. If the settings cannot be saved, WordPress reports that the assignments were retained and asks you to try again.
Account Deletion and Plugin Removal
Deleting an account removes its username from explicit user assignments in saved settings and settings history. On multisite, deleting the account from the network cleans its saved assignments across all sites and networks. Removing an account from only one site keeps its assignments because the account still exists.
Uninstalling the PRO plugin clears every explicit user assignment from site and network settings and their history, including assignments to accounts that no longer exist. Rules, selected roles, all-users coverage, and unrelated settings shared with the free plugin remain saved.
If the settings cannot be saved during this cleanup, the failure is logged and the account deletion or plugin removal still completes. The plugin does not try again later. A username left in the current settings is dropped the next time the settings are saved, because assignments to accounts that no longer exist are not kept. An entry in the settings history that still names a deleted account keeps that username and can no longer be restored.