Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Divert user to BP main page?


CriticalNed
Participant

@criticaltodd

for anyone else attempting this, I also had to delete these lines:

// If the user can’t edit posts, send them to their profile.

if ( !$user->has_cap(‘edit_posts’) && ( empty( $redirect_to ) || $redirect_to == ‘wp-admin/’ ) )

I tried deleting “wp-admin” but somehow that wasn’t enough to force the redirect to the main BP page. Don’t know enough about PHP to figure out what I’m doing wrong there.

Skip to toolbar