Landing Rules
Send each user role to its own page after login and logout. Rules run in your order and every address stays on your site.
Coming to WordPress.org soon
By default WordPress sends everyone to the dashboard after login, even customers and subscribers who have no use for it. Landing Rules lets you pick a page per role: editors to the posts list, members to /members/, customers to their account page.
Rules run in the order you set and the first role a user has wins. Users without a rule go to your fallback address, or where WordPress would send them. Addresses can use {username} or {user_id}, like /members/{username}/.
When a plugin or link asks for a specific page on purpose (a redirect_to that is not just the dashboard), that page wins by default. Every address goes through wp_validate_redirect, so a rule or a crafted link can never send users to another site.
What the free version does
- A login and a logout address per role
- Rule order you control: first matching role wins
- Fallback addresses for everyone else
- Keeps a redirect_to that a plugin or link set on purpose, or ignores it if you prefer
- {username}, {user_id}, {home} and {admin} in addresses
- Works with the WooCommerce My Account login too
Pro
The free version is complete on its own. Pro adds:
- Per-user rules: send one person somewhere special, from their profile.
- After registration: pick where new users land.
- Capability rules: match users by what they can do, like manage_woocommerce.
- Test tool: choose a user and see where they would land and why.
Privacy
No outside requests of its own and nothing stored about visitors.
Questions
Can a rule send users to another site?
No. Addresses must be on your site, or on a host you allowed with the allowed_redirect_hosts filter. Anything else falls back to the default.
A user has two roles.
The rule higher in the list wins. Change the Order numbers to change that.
What is a redirect_to set on purpose?
Links like wp-login.php?redirect_to=/checkout/ or a membership plugin's login form. A plain login goes to your rule.