Changeset 5847 for trunk/bp-core/bp-core-hooks.php
- Timestamp:
- 02/27/2012 03:23:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-hooks.php
r5836 r5847 37 37 add_action( 'init', 'bp_init', 10 ); 38 38 add_action( 'wp', 'bp_ready', 10 ); 39 add_action( 'wp_head', 'bp_head', 10 ); 40 add_action( 'wp_footer', 'bp_footer', 10 ); 39 41 add_action( 'setup_theme', 'bp_setup_theme', 10 ); 40 42 add_action( 'after_theme_setup', 'bp_after_theme_setup', 10 ); … … 46 48 add_filter( 'map_meta_cap', 'bp_map_meta_caps', 10, 4 ); 47 49 48 // Piggy back WordPress theme actions49 add_action( 'wp_head', 'bp_head', 10 );50 add_action( 'wp_footer', 'bp_footer', 10 );51 52 //add_action( 'generate_rewrite_rules', 'bp_generate_rewrite_rules', 10 );53 54 50 /** 55 51 * bp_loaded - Attached to 'plugins_loaded' above … … 90 86 add_action( 'bp_template_redirect', 'bp_screens', 4 ); 91 87 88 // Load the admin 89 if ( is_admin() ) { 90 add_action( 'bp_loaded', 'bp_admin' ); 91 } 92 92 93 /** 93 94 * Plugin Dependency … … 199 200 } 200 201 201 202 /** Admin *********************************************************************/203 204 if ( is_admin() ) {205 206 /** Actions ***************************************************************/207 208 add_action( 'bp_loaded', 'bp_admin' );209 //add_action( 'bp_admin_init', 'bp_admin_settings_help' );210 //add_action( 'admin_menu', 'bp_admin_separator' );211 //add_action( 'custom_menu_order', 'bp_admin_custom_menu_order' );212 //add_action( 'menu_order', 'bp_admin_menu_order' );213 214 /**215 * Run the updater late on 'bp_admin_init' to ensure that all alterations216 * to the permalink structure have taken place. This fixes the issue of217 * permalinks not being flushed properly when a BuddyPress update occurs.218 */219 //add_action( 'bp_admin_init', 'bp_setup_updater', 999 );220 221 /** Filters ***************************************************************/222 }223 224 202 /** Theme *********************************************************************/ 225 203
Note: See TracChangeset
for help on using the changeset viewer.