Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
OK cool
Try this:
function my_redirect() {
if ( is_page( 'me' ) && is_user_logged_in() ) {
$user = get_userdata( get_current_user_id() );
bp_core_redirect( home_url() . '/members/' . $user->user_login );
}
}
add_action( 'template_redirect', 'my_redirect' );