Changeset 4395 for trunk/includes/core/actions.php
- Timestamp:
- 11/11/2012 11:09:10 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/includes/core/actions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/actions.php
r4394 r4395 294 294 295 295 add_action( 'bbp_activation', 'bbp_add_activation_redirect' ); 296 297 /**298 * Requires and creates the BuddyPress extension, and adds component creation299 * action to bp_init hook. @see bbp_setup_buddypress_component()300 *301 * @since bbPress (r3395)302 * @return If BuddyPress is not active303 */304 function bbp_setup_buddypress() {305 global $bp;306 307 // Bail if no BuddyPress308 if ( !empty( $bp->maintenance_mode ) || !defined( 'BP_VERSION' ) ) return;309 310 // Include the BuddyPress Component311 require( bbpress()->includes_dir . 'extend/buddypress/loader.php' );312 313 // Instantiate BuddyPress for bbPress314 bbpress()->extend->buddypress = new BBP_BuddyPress();315 316 // Add component setup to bp_init action317 add_action( 'bp_init', 'bbp_setup_buddypress_component' );318 }
Note:
See TracChangeset
for help on using the changeset viewer.