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

276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
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.