bbp_show_lead_topic

The plugin version of bbPress comes with two topic display options: - Traditional: Topics are included in the reply loop (default) - New Style: Topics appear as "lead" posts, ahead of replies.

Description

bbp_show_lead_topic( (bool) $show_lead = false ); 

Parameters (1)

0. $show_lead — Optional. (bool) => false
Default false

Usage

  1. if ( !function_exists( 'bbp_show_lead_topic' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/topics/template.php'; 
  3.  
  4. // Optional. Default false 
  5. $show_lead = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_show_lead_topic($show_lead); 
  9.  

Defined (1)

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

/includes/topics/template.php  
  1. function bbp_show_lead_topic( $show_lead = false ) { 
  2.  
  3. // Never separate the lead topic in feeds 
  4. if ( is_feed() ) 
  5. return false; 
  6.  
  7. return (bool) apply_filters( 'bbp_show_lead_topic', (bool) $show_lead );