-
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
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’); -
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
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 ); -
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
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..
-
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
i just want to redirect the loggedin bp user to land on the EDIT tab to start editing.. this is so hard to do
-
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
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 ); -
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
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 );` -
boundless_ink replied to the topic How Do I Change Default Members Profile Landing Tab – Step by step? in the forum How-to & Troubleshooting 6 years ago
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 🙂
@boundlessink
Active 3 years, 2 months ago