do_action_ref_array( 'bp_user_query_populate_extras', BP_User_Query $this , string $user_ids_sql )
Allows users to independently populate custom extras.
Description Description
Note that anything you add here should query using $user_ids_sql, to avoid running multiple queries per user in the loop.
Two BuddyPress components currently do this:
- XProfile: To override display names.
- Friends: To set whether or not a user is the current users friend.
See also See also
Parameters Parameters
- $this
-
Current BP_User_Query instance.
- $user_ids_sql
-
Comma-separated string of user IDs.
Source Source
File: bp-core/classes/class-bp-user-query.php
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |