bbp_get_template_locations

Get the possible subdirectories to check for templates in.

Description

(array) bbp_get_template_locations( (array) $templates = array() ); 

Returns (array)

Possible subfolders to look in

Parameters (1)

0. $templates — Optional. (array) => array()
Templates we are looking for

Usage

  1. if ( !function_exists( 'bbp_get_template_locations' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/template-functions.php'; 
  3.  
  4. // Templates we are looking for 
  5. $templates = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_template_locations($templates); 
  9.  

Defined (1)

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

/includes/core/template-functions.php  
  1. function bbp_get_template_locations( $templates = array() ) { 
  2. $locations = array( 
  3. bbpress,  
  4. 'forums',  
  5. '' 
  6. ); 
  7. return apply_filters( 'bbp_get_template_locations', $locations, $templates );