bbp_set_template_included

Set the included template.

Description

bbp_set_template_included( (bool) $template = false ); 

Parameters (1)

0. $template — Optional. (bool) => false
The template.

Usage

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

Defined (1)

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

/includes/core/template-loader.php  
  1. function bbp_set_template_included( $template = false ) { 
  2. bbpress)->theme_compat->bbpress_template = $template; 
  3.  
  4. returnbbpress)->theme_compat->bbpress_template;