BP_Forums_Component::includes( $includes = array() )

Include BuddyBoss classes and functions

Description

Source

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

    public function includes( $includes = array() ) {
        $includes = $includes ?: [];

        // Helper BuddyBoss functions
        $includes[] = 'admin.php';

        // Helper BuddyBoss functions
        $includes[] = 'functions.php';

        // Members modifications
        $includes[] = 'members.php';

        // BuddyBoss Notfications Extension functions
        if ( bp_is_active( 'notifications' ) ) {
            $includes[] = 'notifications.php';
        }

        // BuddyBoss Activity Extension class
        if ( bp_is_active( 'activity' ) ) {
            $includes[] = 'activity.php';
        }

        // BuddyBoss Group Extension class
        if ( bp_is_active( 'groups' ) ) {
            $includes[] = 'groups.php';
        }

        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.