Skip to:
Content

BuddyPress.org

Changeset 2656 for trunk/bp-activity.php


Ignore:
Timestamp:
02/10/2010 09:13:14 PM (14 years ago)
Author:
apeatling
Message:

Moving BuddyPress registration functions to their own actions. Props jjj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r2644 r2656  
    8484    do_action( 'bp_activity_setup_globals' );
    8585}
    86 add_action( 'plugins_loaded', 'bp_activity_setup_globals', 5 );
     86add_action( 'bp_setup_globals', 'bp_activity_setup_globals' );
    8787add_action( 'admin_menu', 'bp_activity_setup_globals', 2 );
    8888
     
    9999    bp_core_add_root_component( BP_ACTIVITY_SLUG );
    100100}
    101 add_action( 'plugins_loaded', 'bp_activity_setup_root_component', 2 );
     101add_action( 'bp_setup_root_components', 'bp_activity_setup_root_component' );
    102102
    103103function bp_activity_setup_nav() {
     
    134134    do_action( 'bp_activity_setup_nav' );
    135135}
    136 add_action( 'plugins_loaded', 'bp_activity_setup_nav' );
     136add_action( 'bp_setup_nav', 'bp_activity_setup_nav' );
    137137add_action( 'admin_menu', 'bp_activity_setup_nav' );
    138138
     
    10921092add_action( 'make_spam_user', 'bp_activity_remove_data' );
    10931093
     1094
     1095/********************************************************************************
     1096 * Custom Actions
     1097 *
     1098 * Functions to set up custom BuddyPress actions that all other components can
     1099 * hook in to.
     1100 */
     1101
     1102/* Allow core components and dependent plugins to register activity actions */
     1103function bp_register_activity_actions() {
     1104    do_action( 'bp_register_activity_actions' );
     1105}
     1106add_action( 'plugins_loaded', 'bp_register_activity_actions' );
     1107
     1108
    10941109?>
Note: See TracChangeset for help on using the changeset viewer.