BP_Blogs_Component::includes( array $includes = array() )
Include bp-blogs files.
Description
See also
- BP_Component::includes(): for description of parameters.
Parameters
- $includes
-
(Optional) See BP_Component::includes().
Default value: array()
Source
File: bp-blogs/classes/class-bp-blogs-component.php
public function includes( $includes = array() ) { // Files to include. $includes = array( 'cache', 'template', 'filters', 'functions', ); if ( bp_is_active( 'activity' ) ) { $includes[] = 'activity'; } if ( is_multisite() ) { $includes[] = 'widgets'; } // Include the files. parent::includes( $includes ); }
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.