Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change default page -> My Account page

Viewing 4 replies - 1 through 4 (of 4 total)

  • f15d9f87d
    Participant

    @boyevul

    This is the plugin you want: https://wordpress.org/extend/plugins/bp-profile-as-homepage/ – does exactly what you’re asking for.


    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


    aomao
    Participant

    @aomao

    Finally it’s working
    the plugin works fine in the normal server
    but not working under localhost
    thanks boyevul

    I’ve tried it on my live site and can’t get it working. I just gave up on it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change default page -> My Account page’ is closed to new replies.
Skip to toolbar