BP_XProfile_Component::includes( array $includes = array() )
Include files.
Description
Parameters
- $includes
-
(Optional) Array of files to include.
Default value: array()
Source
File: bp-xprofile/classes/class-bp-xprofile-component.php
public function includes( $includes = array() ) { $includes = array( 'cssjs', 'cache', 'caps', 'filters', 'template', 'functions', 'repeaters', ); // Conditional includes. if ( bp_is_active( 'activity' ) ) { $includes[] = 'activity'; } if ( bp_is_active( 'notifications' ) ) { $includes[] = 'notifications'; } if ( bp_is_active( 'settings' ) ) { $includes[] = 'settings'; } 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.