Skip to:
Content
Pages
Categories
Search
Top
Bottom

what does it do ?

  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    Hello everybody,

    I want to know what exactly does `$bp->default_component` in the system construction ?
    It seems that $bp->default_component only returns “activity” while used in a function placed in a extra field, and that, what ever the page it is called from.

    I read here first of course for more details: http://codex.buddypress.org/developer-docs/the-bp-global/
    but it’s a bit short and not really pertinent to me.

    Thank you in advance for your explanation.

    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    $bp->default_component is only used for the members component, so when you’re on a member’s profile page, the default component you see, by default, is the user’s activity loop; otherwise, it’s the user’s profile loop.

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    So it is the name “default _component” who finaly leads me to confusion.
    But good to know from now, it’s only useable in member component.
    Thank you @r-a-y !

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

You must be logged in to reply to this topic.