bb_bozo_user_search_description

The BuddyPress bb bozo user search description function.

Description

bb_bozo_user_search_description( $description, $h2_search, $h2_role, $user_search_object ); 

Parameters (4)

0. $description
The description.
1. $h2_search
The h2 search.
2. $h2_role
The h2 role.
3. $user_search_object
The user search object.

Usage

  1. if ( !function_exists( 'bb_bozo_user_search_description' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/bozo.php'; 
  3.  
  4. // The description. 
  5. $description = null; 
  6.  
  7. // The h2 search. 
  8. $h2_search = null; 
  9.  
  10. // The h2 role. 
  11. $h2_role = null; 
  12.  
  13. // The user search object. 
  14. $user_search_object = null; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = bb_bozo_user_search_description($description, $h2_search, $h2_role, $user_search_object); 
  18.  

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_user_search_description( $description, $h2_search, $h2_role, $user_search_object ) 
  2. if ( isset( $user_search_object->roles ) && is_array( $user_search_object->roles ) && in_array( 'bozo', $user_search_object->roles ) ) { 
  3. return sprintf( '%1$s%2$s that are bozos', $h2_search, $h2_role ); 
  4. return $description;