bb_bozo_get_bozo_user_ids

The BuddyPress bb bozo get user ids function.

Description

bb_bozo_get_bozo_user_ids(); 

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_get_bozo_user_ids() 
  2. global $bbdb; 
  3. $sql = "SELECT `user_id` FROM `$bbdb->usermeta` WHERE `meta_key` = 'is_bozo' AND `meta_value` = '1';"; 
  4. $user_ids = $bbdb->get_col( $sql, 0 ); 
  5. if ( is_wp_error( $user_ids ) || empty( $user_ids ) ) { 
  6. return false; 
  7. return $user_ids;