Sparrow Plugins

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

Pro

The free version is complete on its own. Pro adds:

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.