BP_Members_Component::includes( array $includes = array() )
Include bp-members files.
Description
See also
- BP_Component::includes(): for description of parameters.
Parameters
- $includes
-
(Optional) See BP_Component::includes().
Default value: array()
Source
File: bp-members/classes/class-bp-members-component.php
public function includes( $includes = array() ) {
// Always include these files.
$includes = array(
'filters',
'template',
'adminbar',
'functions',
'widgets',
'cache',
);
if ( bp_is_active( 'activity' ) ) {
$includes[] = 'activity';
}
// Include these only if in admin.
if ( is_admin() ) {
$includes[] = 'admin';
}
parent::includes( $includes );
}
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.