Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,830
- How-to & Troubleshooting
- 129,810
- Creating & Extending
- 25,867
- Requests & Feedback
- 9,509
- Third Party Plugins
- 9,821
- Showcase
- 3,317
- Ideas
- 1,382
- Miscellaneous
- 9,177
-
Read this:
https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions#post-37123
Use bp_core_redirect();
From the commented code:
– Performs a status safe wp_redirect() that is compatible with bp_catch_uri();
eg. redirect to logged in user’s profile:
global $bp;
bp_core_redirect( $bp->loggedin_user->domain );