bbp_get_theme_compat_templates

Get the templates to use as the endpoint for bbPress template parts.

Description

(string) bbp_get_theme_compat_templates(); 

Returns (string)

Path to template file


Usage

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

Defined (1)

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

/includes/core/template-loader.php  
  1. function bbp_get_theme_compat_templates() { 
  2. $templates = array( 
  3. 'plugin-bbpress.php',  
  4. 'bbpress.php',  
  5. 'forums.php',  
  6. 'forum.php',  
  7. 'generic.php',  
  8. 'page.php',  
  9. 'single.php',  
  10. 'index.php' 
  11. ); 
  12. return bbp_get_query_template( bbpress, $templates );