Skip to:
Content

BuddyPress.org

Ticket #1901: root_component_action.diff

File root_component_action.diff, 481 bytes (added by MrMaz, 15 years ago)

this is so obvious

  • bp-core.php

     
    202202        bp_core_add_root_component( BP_ACTIVATION_SLUG );
    203203        bp_core_add_root_component( BP_SEARCH_SLUG );
    204204        bp_core_add_root_component( BP_HOME_BLOG_SLUG );
     205
     206        // allow plugins to register a root component
     207        do_action( 'bp_core_setup_root_uris' );
    205208}
    206209add_action( 'plugins_loaded', 'bp_core_setup_root_uris', 2 );
    207210