bp_get_theme_compat_templates

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

Description

(array) bp_get_theme_compat_templates(); 

Returns (array)

Array of possible root level wrapper template files.


Usage

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

Defined (1)

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

/bp-core/bp-core-template-loader.php  
  1. function bp_get_theme_compat_templates() { 
  2. return bp_get_query_template( buddypress, array( 
  3. 'plugin-buddypress.php',  
  4. 'buddypress.php',  
  5. 'community.php',  
  6. 'generic.php',  
  7. 'page.php',  
  8. 'single.php',  
  9. 'singular.php',  
  10. 'index.php' 
  11. ) );