bb_bozo_user_search_description
The BuddyPress bb bozo user search description function.
Description
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
if ( !function_exists( 'bb_bozo_user_search_description' ) ) { require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/bozo.php'; } // The description. $description = null; // The h2 search. $h2_search = null; // The h2 role. $h2_role = null; // The user search object. $user_search_object = null; // NOTICE! Understand what this does before running. $result = bb_bozo_user_search_description($description, $h2_search, $h2_role, $user_search_object);
Defined (1)
The function is defined in the following location(s).
- /bp-forums/bbpress/bb-plugins/bozo.php
- function bb_bozo_user_search_description( $description, $h2_search, $h2_role, $user_search_object )
- {
- if ( isset( $user_search_object->roles ) && is_array( $user_search_object->roles ) && in_array( 'bozo', $user_search_object->roles ) ) {
- return sprintf( '%1$s%2$s that are bozos', $h2_search, $h2_role );
- }
- return $description;
- }