bb_bozo_get_topic_posts

The BuddyPress bb bozo get topic posts function.

Description

bb_bozo_get_topic_posts( $topic_posts ); 

Parameters (1)

0. $topic_posts
The topic posts.

Usage

  1. if ( !function_exists( 'bb_bozo_get_topic_posts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/bozo.php'; 
  3.  
  4. // The topic posts. 
  5. $topic_posts = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_bozo_get_topic_posts($topic_posts); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_get_topic_posts( $topic_posts ) { 
  2. global $topic; 
  3. if ( isset( $topic->topic_id ) && bb_current_user_is_bozo( $topic->topic_id ) ) 
  4. $topic_posts += $topic->bozos[bb_get_current_user_info( 'id' )]; 
  5. return $topic_posts;