BP_Forums_Component::setup_components()
Instantiate classes for BuddyBoss integration
Description
Source
File: bp-forums/classes/class-bp-forums-component.php
public function setup_components() { // Always load the members component bbpress()->extend->buddypress->members = new BBP_BuddyPress_Members; // Create new activity class if ( bp_is_active( 'activity' ) ) { bbpress()->extend->buddypress->activity = new BBP_BuddyPress_Activity; } // Register the group extension only if groups are active if ( bbp_is_group_forums_active() && bp_is_active( 'groups' ) ) { bp_register_group_extension( 'BBP_Forums_Group_Extension' ); } }
Changelog
Version | Description |
---|---|
bbPress (r3395) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.