BP_Forums_Component::setup_components()

Instantiate classes for BuddyBoss integration

Description

Source

File: bp-forums/classes/class-bp-forums-component.php

135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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

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.