Set the BuddyPress Profile Page as the Homepage

Set BuddyPress user profile page as the homepage on child sites.

Snippet Type

Execute on Child Sites


function bp_set_profile_page_as_homepage() {
    if ( is_user_logged_in() && is_front_page() ) {
        global $bp;
        wp_redirect( $bp->loggedin_user->domain );


add_action( 'template_redirect', 'bp_set_profile_page_as_homepage' );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.