Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Default Landing Tab

  • Avatar of iamdhunt
    iamdhunt
    Participant

    @iamdhunt

    I know with this function below I can change the default landing tab when visiting a profile. Is there a way that I can have this be the case only when visiting another users profile but still have activity be the default on your own profile.

    define(“BP_DEFAULT_COMPONENT”,”profile”);

Viewing 1 replies (of 1 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You write a function to test if logged in user is displayed user.

    if (  bp_loggedin_user_id()  ==  bp_displayed_user_id()  ) {

    define(“BP_DEFAULT_COMPONENT”,”profile”);

    }

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.