BP_Messages_Component::includes( array $includes = array() )

Include files.

Description

Parameters

$includes

(Optional) See {BP_Component::includes()} for details.

Default value: array()

Source

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

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
public function includes( $includes = array() ) {
 
    // Files to include.
    $includes = array(
        'cssjs',
        'cache',
        'filters',
        'template',
        'functions',
        'widgets',
    );
 
    // Conditional includes.
    if ( bp_is_active( 'notifications' ) ) {
        $includes[] = 'notifications';
    }
    if ( bp_is_active( $this->id, 'star' ) ) {
        $includes[] = 'star';
    }
    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.