BP_Friends_Component::includes( array $includes = array() )

Include bp-friends files.

Description

See also

Parameters

$includes

(Optional) See BP_Component::includes().

Default value: array()

Source

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

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
public function includes( $includes = array() ) {
    $includes = array(
        'cache',
        'filters',
        'template',
        'functions',
        'widgets',
    );
 
    // Conditional includes.
    if ( bp_is_active( 'activity' ) ) {
        $includes[] = 'activity';
    }
    if ( bp_is_active( 'notifications' ) ) {
        $includes[] = 'notifications';
    }
 
    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.