@xpc33
4 years, 6 months ago
this did the trick. it doesnt need to redirect, but just changes landing page.
//Set Default Tab to custom define('BP_DEFAULT_COMPONENT', 'custom' ); add_filter( 'bp_is_active', function($retval, $component){ if($component === 'custom') return true; return $retval; }, 10, 2 );
Hi thanks but thats not what im trying to achieve. that’s already done with:
if( !function_exists('custom_user_login_redirect') ) { function custom_user_login_redirect() { $redirect_to = '/members/me/friends/'; return $redirect_to; } add_filter('login_redirect','custom_user_login_redirect',10,3); }
what i want now is to redirect everyone from user dashboard, where there’s something like ‘Latest updates’ straight to another tab, permanent for all users.