Skip to:
Content
Pages
Categories
Search
Top
Bottom

Documentation on Custom Components


  • mrpritchett
    Participant

    @mrpritchett

    I’m looking for an example on how to extend a component via the component API that registers a component to be accessible via bp_pages in order to have a page set on that screen.

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

  • shanebp
    Moderator

    @shanebp

    The documentation is not current.

    For writing a new component, have you tried looking at the extensions of BP_Component?
    Like: bp-activity\classes\class-bp-activity-component.php

    I’ve never created a BP component that allows setting a page on bp-page-settings.
    If you figure it out, please share here.

    There might be a free BP plugin in the repo that does so, but I have yet to see one.


    mrpritchett
    Participant

    @mrpritchett

    I think I’ve found it. In buddypress/bp-activity/classes/class-bp-activity-component.php, on line 182, the two arguments has_directory and directory_title seem to drive this listing inside of parent::setup_globals($args). I’ll be testing this tonight.


    mrpritchett
    Participant

    @mrpritchett

    Tested and confirmed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar