Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,903
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
i put this in the function.php child theme: is this correct code?
function my_login_redirect( $user_id, $user_login, $user_password, $user_email, $usermeta ) {
wp_redirect( bp_loggedin_user_domain() . '/profile/edit/group/2/' );
exit();
}
add_action( 'login_redirect', 'my_login_redirect', 10, 5 );
.. cant seem to get it to work.. i tried in bp-custom.php too.. maybe my code is not correct??