Skip to content
BuddyPress

How To Redirect BuddyPress Members After Login In WordPress?

· · 2 min read
Redirect BuddyPress Members After Login In WordPress

Have you ever wanted to send community members to a specific page right after they log in to your BuddyPress website?

Depending on the user’s role, you might want to send them to the WordPress dashboard, or to their profile on the community’s frontend instead.
Here’s how to redirect BuddyPress users after login, including how to send different user roles to different destinations.

Why Redirect Community Members After Login?

Running a multi-user or membership-based community website means users need to log in regularly to manage their accounts and take action on your site.
Many WordPress membership and eCommerce plugins handle this automatically, sending users to a custom account page through a custom login flow. Sites without that kind of plugin, though, tend to dump users straight into the default WordPress admin area.

That’s a rough landing spot. It gives a logged-in user no real sense of what to do next, and on a social networking site, that’s a genuinely bad first impression.

Imagine logging into Facebook and landing on some unfamiliar admin screen instead of your news feed. That confusion is exactly what happens to BuddyPress members redirected to wp-admin by default; many of them, unfamiliar with the WordPress backend, will just log straight back out.

Getting the post-login redirect right is a small detail that makes a real difference to how a community feels to use. Here’s how to set it up.

How to Redirect BuddyPress Members After Login

We’ll use BuddyPress Redirect, a free, dedicated add-on that lets site admins decide exactly where members land after they log in.
First, install the BuddyPress Redirect plugin. For the full walkthrough, see how to install the BuddyPress Redirect plugin.

Redirect BuddyPress Members After Login

Once it’s active, go to Dashboard > BP Redirect > Settings. You’ll set login and logout redirects for each user role:

  • Administrator
  • Editor
  • Author
  • Contributor
  • Subscriber

Each role can be sent to one of four destinations after login:

  • Personal Profile (shown below)

  • Personal Activity
  • Site-Wide Activity

BP Redirect

  • Custom URL

Redirect BuddyPress Members After Login

Set a destination for each role, save, and you’re done. You can also configure a logout redirect, sending users to a custom URL once they’ve logged out.

Get BP Redirect For Free

That’s it, your community members should now land somewhere that actually makes sense after logging in, whatever their role. If you also want to lock down BuddyPress components from logged-out visitors and cut down on spam, check out How To Protect Your BuddyPress Community From Spammers.

Got a suggestion? Let us know in the comments below.

Interesting Read: How To Add Member Reviews Feature On Your BuddyPress Website?