bbp_set_theme_compat_template

Set the theme compat template global.

Description

bbp_set_theme_compat_template( (string) $template = '' ); 

Stash the template file for the current query. Useful if plugins want to override it, or see what file is being included.

Parameters (1)

0. $template — Optional. (string) => ''
The template.

Usage

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

Defined (1)

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

/includes/core/theme-compat.php  
  1. function bbp_set_theme_compat_template( $template = '' ) { 
  2. bbpress)->theme_compat->template = $template; 
  3.  
  4. returnbbpress)->theme_compat->template;