Skip to:
Content
Pages
Categories
Search
Top
Bottom

what does it do ?

  • @chouf1

    Participant

    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)
  • @r-a-y

    Keymaster

    $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.

    @chouf1

    Participant

    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)
  • The topic ‘what does it do ?’ is closed to new replies.
Skip to toolbar