Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have two sites (towermix.com and beta.towermix.com) running BuddyPress and both are doing the same thing. When a site admin (or contributor or author) logs in using the WordPress login page, they are redirected to the home page instead of Dashboard. I don't have any direction plugins on these sites.

How do I make it stop doing this?

I've tried the following:

  • Deactivating plugins one-at-a-time and logging in afterwards. No change until I deactivated BuddyPress.
  • Searched BuddyPress documentation and code - couldn't find any redirect code sending the user to the home page (unless the BP user account is being deleted)
  • Replaced BuddyPress install with files downloaded from BP site - no change
  • Replaced WordPress install with files downloaded from WP site - no change
share|improve this question

closed as off-topic by ialocin, Wyck, toscho Aug 16 at 1:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

remove_filter( 'login_redirect', 'bp_core_login_redirect' );

If you place this in your functions.php the default login redirect from WordPress is used. So if you go to /wp-admin/ then you will be redirected to /wp-admin/.

share|improve this answer

That is built-in to BuddyPress, the idea being that the majority of users aren't supposed to be in the admin panel.

The below thread has a function to redirect to the profile page, I'm sure it can be modded to go to the admin panel

redirect to profile page

share|improve this answer
    
While I can understand that the majority of users aren't supposed to be in the admin panel, the admins are. Isn't there some kind of capability check before forwarding people? If you can admin the site, you should be allowed to go through to Dashboard, otherwise send them to the Buddypress pages. I shouldn't have to modify the default behavior of BuddyPress for this. –  Slushman Dec 13 '11 at 16:43
    
my understanding is that there isn't. its an extra step, yes, but like any default there is bound to be those whom it is the opposite of what they want. –  Norcross Dec 16 '11 at 2:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.