bb_get_default_template

The BuddyPress bb get default template function.

Description

bb_get_default_template( $file ); 

Parameters (1)

0. $file
The file.

Usage

  1. if ( !function_exists( 'bb_get_default_template' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The file. 
  5. $file = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_default_template($file); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_get_default_template( $file ) 
  2. if ( file_exists( BB_DEFAULT_THEME_DIR . $file ) ) { 
  3. return BB_DEFAULT_THEME_DIR . $file;