apply_filters( 'bp_core_user_get_specific_users_count_sql', string $sql, array $user_ids, int|null $limit, int $page, bool $populate_extras )

Filter the SQL string used for querying specific user count results.

Description

Use this instead of the deprecated ‘bp_core_get_specific_users_count_sql’.

Parameters

$sql

(string) SQL string.

$user_ids

(array) Array of IDs of specific users to fetch.

$limit

(int|null) Max number of records to return. Null for no limit.

$page

(int) The page we're on for pagination.

$populate_extras

(bool) Whether to populate extra user fields.

Source

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

Changelog

Changelog
Version Description
BuddyPress 2.3.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.