← All posts

Redirect Users After Login by User Role: WP Admin Cleaner

By default, WordPress sends every user to the dashboard after login, even a Subscriber who only needs one page on the front end. Most plugins that redirect users after login also rebuild the whole dashboard and login page. In this video we show a simpler option in WP Admin Cleaner: you set a redirect URL for each user role and can hide the admin top bar for that role, so front-end users never land in wp-admin.

The example: a Favorites page for logged-in users

Our demo site is a blog where visitors can mark posts as favorites. The Favorites page has two states:

  • If you're not logged in, it shows You need to be logged in to see or manage favorites and a Login button.
  • If you're logged in, it lists your favorite posts.

When a Subscriber logs in, WordPress sends them to the dashboard. That's the wrong place for them. They should go straight back to the Favorites page. That's the problem we fix here.

Set a redirect URL per user role

We didn't want one redirect for everyone, so the setting works per role. Administrators and editors can keep the dashboard, and subscribers go to the front end.

  1. Go to Tools → WP Admin Cleaner and open the User Redirection after login tab.
  2. The Custom redirection after login panel lists one field per role: Administrator, Editor, Author, Contributor, Subscriber, plus any extra roles on your site (in the video: Shop Manager, Shop Accountant, Shop Worker, Shop Vendor).
  3. Copy the URL of the page you want the role to land on (here, the Favorites page) and paste it into the Subscriber field.
  4. Click Save Changes.

As the panel says, empty fields are ignored and only filled fields are active. Roles you leave empty keep the default WordPress behaviour.

We then logged out and logged back in as the Subscriber. They landed straight on Favorites, added a few posts, and saw the list update without ever passing through the dashboard.

Hide the admin top bar for that role

Even after the redirect, the subscriber still sees the WordPress admin bar at the top of the site. That bar links back into wp-admin and looks out of place on a front-end member page.

  1. On the same User Redirection after login tab, turn on the Hide Topbar toggle next to Subscriber.
  2. Click Save Changes.
  3. Reload the front end as the subscriber. The top bar is gone.

The toggle is set per role, so you can hide the bar for subscribers and keep it for editors or authors. With the redirect and the hidden bar together, the subscriber has no visible way into the WordPress admin dashboard.

Who is this for

  • Site builders with member or favorites features who want logged-in users to stay on the front end.
  • Developers who only need a login redirect, not a whole custom login and dashboard plugin.
  • WooCommerce or multi-role sites that need a different landing page for each role.

FAQ

How do I redirect a user to a specific page after login in WordPress? In WP Admin Cleaner, go to Tools → WP Admin Cleaner → User Redirection after login, paste the page URL into the field for that user's role, and click Save Changes.

Can different user roles go to different pages? Yes. Each role has its own URL field. Roles with an empty field are ignored and use the default WordPress redirect.

How do I hide the admin bar for subscribers only? Turn on the Hide Topbar toggle next to Subscriber on the same tab and save. The toggle is set per role, so other roles keep the admin bar.

Do I need a separate login redirect plugin? Not for this case. If you only need a per-role redirect and to hide the admin bar, WP Admin Cleaner covers it, and that's one plugin less to install.

Get WP Admin Cleaner → dplugins.com