BP_Groups_Component::includes( array $includes = array() )

Include Groups component files.

Description

See also

Parameters

$includes

(Optional) See BP_Component::includes() for a description.

Default value: array()

Source

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

122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
public function includes( $includes = array() ) {
    $includes = array(
        'cache',
        'filters',
        'widgets',
        'template',
        'adminbar',
        'functions',
        'notifications'
    );
 
    // Conditional includes.
    if ( bp_is_active( 'activity' ) ) {
        $includes[] = 'activity';
    }
    if ( is_admin() ) {
        $includes[] = 'admin';
    }
 
    parent::includes( $includes );
}

Changelog

Changelog
Version Description
BuddyPress 1.5.0 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.