Re: How can I get redirect to the groups diectory page after login?
Put his inside bp-custom.php and it will redirect the users to group directory
<?php
add_filter("login_redirect","bpdev_redirect_to_group",100,3);
function bpdev_redirect_to_group($redirect_to_calculated,$redirect_url_specified,$user)
{
/*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
if(empty($redirect_to_calculated))
$redirect_to_calculated=admin_url();
/*if the user is not site admin,redirect to group directory*/
if(!is_site_admin($user->user_login))
return bp_get_root_domain()."/".BP_GROUPS_SLUG;
else
return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/
}
?>
Hope it helps