bbp_get_single_view_template

Get the view template.

Description

(string) bbp_get_single_view_template(); 

Returns (string)

Path to template file


Usage

  1. if ( !function_exists( 'bbp_get_single_view_template' ) ) { 
  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_single_view_template(); 
  7.  

Defined (1)

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

/includes/core/template-loader.php  
  1. function bbp_get_single_view_template() { 
  2. $view_id = bbp_get_view_id(); 
  3. $templates = array( 
  4. 'single-view-' . $view_id . '.php', // Single View ID 
  5. 'view-' . $view_id . '.php', // View ID 
  6. 'single-view.php', // Single View 
  7. 'view.php', // View 
  8. ); 
  9. return bbp_get_query_template( 'single_view', $templates );