bbp_load_theme_functions

Attempt to load a custom bbPress functions file, similar to each themes functions.php file.

Description

bbp_load_theme_functions(); 

Usage

  1. if ( !function_exists( 'bbp_load_theme_functions' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/template-loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_load_theme_functions(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/core/template-loader.php  
  1. function bbp_load_theme_functions() { 
  2. global $pagenow; 
  3.  
  4. // If bbPress is being deactivated, do not load any more files 
  5. return; 
  6.  
  7. if ( ! defined( 'WP_INSTALLING' ) || ( !empty( $pagenow ) && ( 'wp-activate.php' !== $pagenow ) ) ) { 
  8. bbp_locate_template( 'bbpress-functions.php', true );