bbp_template_include

The main filter used for theme compatibility and displaying custom bbPress theme files.

Description

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

Returns (string)

Template file to use

Parameters (1)

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

Usage

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

Defined (1)

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

/includes/core/sub-actions.php  
  1. function bbp_template_include( $template = '' ) { 
  2. return apply_filters( 'bbp_template_include', $template );