bbp_the_topic

Loads up the current topic in the loop.

Description

(object) bbp_the_topic(); 

Returns (object)

Topic information


Usage

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

Defined (1)

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

/includes/topics/template.php  
  1. function bbp_the_topic() { 
  2. returnbbpress)->topic_query->the_post();