Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,965
- How-to & Troubleshooting
- 129,265
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,479
- Third Party Plugins
- 9,784
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,165
-
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 );
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS