Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Change default page -> My Account page


aomao
Participant

@aomao

That plugin use this code to show users page.

`function bp_profile_homepage()
{
global $bp;
if(is_user_logged_in() && $_SERVER==’/’)
{
wp_redirect( $bp->loggedin_user->domain );
}
}
function logout_redirection()
{
global $bp;
$redirect = $bp->root_domain;
wp_logout_url( $redirect );
}
add_filter(‘get_header’,’bp_profile_homepage’,1);
add_action(‘wp_logout’,’logout_redirection’);`
by the way I am testing it in localhost
maybe that causes problem

Skip to toolbar