Changeset 5736 for trunk/bp-core/bp-core-hooks.php
- Timestamp:
- 02/12/2012 07:58:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-hooks.php
r5524 r5736 68 68 add_action( 'bp_ready', 'bp_screens', 4 ); 69 69 70 /** Theme *********************************************************************/ 71 72 // Piggy back WordPress theme actions 73 add_action( 'wp_head', 'bp_head' ); 74 add_action( 'wp_footer', 'bp_footer' ); 75 70 76 /** Admin Bar *****************************************************************/ 71 77 72 78 // Setup the navigation menu 73 add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 79 add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 11 ); 74 80 75 81 /** The hooks *****************************************************************/ … … 217 223 } 218 224 225 /** Theme *********************************************************************/ 226 227 /** 228 * Piggy-back action for BuddyPress specific <head> actions in a theme 229 * 230 * @since BuddyPress (1.6) 231 * 232 * @uses do_action() Calls 'bp_head' hook 233 */ 234 function bp_head() { 235 do_action( 'bp_head' ); 236 } 237 238 /** 239 * Piggy-back action for BuddyPress specific footer actions in a theme 240 * 241 * @since BuddyPress (1.6) 242 * 243 * @uses do_action() Calls 'bp_footer' hook 244 */ 245 function bp_footer() { 246 do_action( 'bp_footer' ); 247 } 248 219 249 ?>
Note: See TracChangeset
for help on using the changeset viewer.