Forum Replies Created
-
ANSWER IS:
function admin_default_page() { global $user; return bp_core_get_user_domain( $user->ID ).'/profile/edit/group/2/'; } add_filter('login_redirect', 'admin_default_page');
what about this?
function wps_redirect_bp_login() { if( is_user_logged_in() && bp_is_register_page() ) { bp_core_redirect( get_option('home') . '/members/' . $user_login . '/profile/edit/group/1/' ); } } add_action( 'template_redirect', 'wps_redirect_bp_login', 1 );
i cant seem to get this to work either ..
Redirect users to buddypress profile edit page after sign up: TOPIC:
this code: via https://buddypress.org/support/topic/redirect-users-to-buddypress-profile-edit-page-after-sign-up/
.. this doesnt seem to work either.. @shanebp
i just want to redirect the loggedin bp user to land on the EDIT tab to start editing.. this is so hard to do
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??
This is not working for me
function my_signup_redirect( $user_id, $user_login, $user_password, $user_email, $usermeta ) { wp_redirect( home_url() . '/members/' . $user_login . '/profile/edit/group/1/' ); exit(); } add_action( 'bp_core_signup_user', 'my_signup_redirect', 10, 5 );
Hello,
How would I land on the BP Profile Page Subnav EDIT tab instead of Profile / View?
I cant seem to find docs for this
please assist if you can, ty in advance 🙂