Changeset 2656 for trunk/bp-core.php
- Timestamp:
- 02/10/2010 09:13:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2653 r2656 182 182 do_action( 'bp_core_setup_globals' ); 183 183 } 184 add_action( ' plugins_loaded', 'bp_core_setup_globals', 5);184 add_action( 'bp_setup_globals', 'bp_core_setup_globals' ); 185 185 add_action( '_admin_menu', 'bp_core_setup_globals', 2 ); // must be _admin_menu hook. 186 186 … … 378 378 } 379 379 } 380 add_action( ' plugins_loaded', 'bp_core_setup_nav' );380 add_action( 'bp_setup_nav', 'bp_core_setup_nav' ); 381 381 add_action( 'admin_menu', 'bp_core_setup_nav' ); 382 382 … … 2063 2063 add_filter( 'login_redirect', 'bp_core_login_redirect' ); 2064 2064 2065 2066 /******************************************************************************** 2067 * Custom Actions 2068 * 2069 * Functions to set up custom BuddyPress actions that all other components can 2070 * hook in to. 2071 */ 2072 2073 /* Allow core components and dependent plugins to set globals */ 2074 function bp_setup_globals() { 2075 do_action( 'bp_setup_globals' ); 2076 } 2077 add_action( 'plugins_loaded', 'bp_setup_globals', 5 ); 2078 2079 /* Allow core components and dependent plugins to set root components */ 2080 function bp_setup_root_components() { 2081 do_action( 'bp_setup_root_components' ); 2082 } 2083 add_action( 'plugins_loaded', 'bp_setup_root_components', 2 ); 2084 2085 /* Allow core components and dependent plugins to set their nav */ 2086 function bp_setup_nav() { 2087 do_action( 'bp_setup_nav' ); 2088 } 2089 add_action( 'plugins_loaded', 'bp_setup_nav' ); 2090 2091 2092 /******************************************************************************** 2093 * Caching 2094 * 2095 * Caching functions handle the clearing of cached objects and pages on specific 2096 * actions throughout BuddyPress. 2097 */ 2098 2065 2099 /** 2066 2100 * bp_core_clear_user_object_cache()
Note: See TracChangeset
for help on using the changeset viewer.