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

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.
  • Connections: To set whether or not a user is the current users friend.

See also

Parameters

$this

Current BP_User_Query instance.

$user_ids_sql

Comma-separated string of user IDs.

Source

File: bp-core/classes/class-bp-user-query.php

Changelog

Changelog
Version Description
BuddyPress 1.7.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.