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

SQL string.

$user_ids

Array of IDs of specific users to fetch.

$limit

Max number of records to return. Null for no limit.

$page

The page we're on for pagination.

$populate_extras

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.