This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

bbPress::includes()

Include required files

Description

Source

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

    private function includes() {

        /** Core **************************************************************/

        require( $this->includes_dir . 'core/sub-actions.php'        );
        require( $this->includes_dir . 'core/functions.php'          );
        require( $this->includes_dir . 'core/cache.php'              );
        require( $this->includes_dir . 'core/options.php'            );
        require( $this->includes_dir . 'core/capabilities.php'       );
        require( $this->includes_dir . 'core/update.php'             );
        require( $this->includes_dir . 'core/template-functions.php' );
        require( $this->includes_dir . 'core/template-loader.php'    );
        require( $this->includes_dir . 'core/theme-compat.php'       );

        /** Components ********************************************************/

        // Common
        require( $this->includes_dir . 'common/ajax.php'          );
        require( $this->includes_dir . 'common/classes.php'       );
        require( $this->includes_dir . 'common/functions.php'     );
        require( $this->includes_dir . 'common/formatting.php'    );
        require( $this->includes_dir . 'common/locale.php'        );
        require( $this->includes_dir . 'common/template.php'      );
        require( $this->includes_dir . 'common/widgets.php'       );
        require( $this->includes_dir . 'common/shortcodes.php'    );

        // Forums
        require( $this->includes_dir . 'forums/capabilities.php'  );
        require( $this->includes_dir . 'forums/functions.php'     );
        require( $this->includes_dir . 'forums/template.php'      );

        // Topics
        require( $this->includes_dir . 'topics/capabilities.php'  );
        require( $this->includes_dir . 'topics/functions.php'     );
        require( $this->includes_dir . 'topics/template.php'      );

        // Replies
        require( $this->includes_dir . 'replies/capabilities.php' );
        require( $this->includes_dir . 'replies/functions.php'    );
        require( $this->includes_dir . 'replies/template.php'     );

        // Search
        require( $this->includes_dir . 'search/functions.php'     );
        require( $this->includes_dir . 'search/template.php'      );

        // Users
        require( $this->includes_dir . 'users/capabilities.php'   );
        require( $this->includes_dir . 'users/functions.php'      );
        require( $this->includes_dir . 'users/template.php'       );
        require( $this->includes_dir . 'users/options.php'        );

        /** Hooks *************************************************************/

        require( $this->includes_dir . 'core/extend.php'  );
        require( $this->includes_dir . 'core/actions.php' );
        require( $this->includes_dir . 'core/filters.php' );

        /** Admin *************************************************************/

        // Quick admin check and load if needed
        if ( is_admin() ) {
            require( $this->includes_dir . 'admin/admin.php'   );
            require( $this->includes_dir . 'admin/actions.php' );
        }
    }

Changelog

Changelog
Version Description
bbPress (r2626) 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.