bb_bozo_topics

The BuddyPress bb bozo topics function.

Description

bb_bozo_topics( $where ); 

Parameters (1)

0. $where
The where.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_topics( $where ) { 
  2. if ( !$id = bb_get_current_user_info( 'id' ) ) 
  3. return $where; 
  4.  
  5. return preg_replace( 
  6. '/(\w+\.)?topic_status = ["\']?0["\']?/',  
  7. "( \\1topic_status = 0 OR \\1topic_status > 1 AND \\1topic_poster = '$id' )",  
  8. $where);