Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating root component

  • @gwu123

    Participant

    Hi,

    Can any one tell me what happens if my external component is setup as root component using the following code?

    function extcomp_setup_root_component() {

    /* Register ‘extcomp’ as a root component */

    bp_core_add_root_component( BP_EXTCOMP_SLUG );

    }

    add_action( ‘bp_setup_root_components’, ‘extcomp_setup_root_component’ );

Viewing 1 replies (of 1 total)
  • @djpaul

    Keymaster

    It lets you capture example.com/yourslug as a Url I.e. for a directory

Viewing 1 replies (of 1 total)
  • The topic ‘Creating root component’ is closed to new replies.
Skip to toolbar