WordPress at a glance
filter is not described

pre_count_users filter-hook . WP 5.1.0

Filters the user count before queries are run.

Return a non-null value to cause count_users() to return early.

Usage

add_filter( 'pre_count_users', 'filter_function_name_687', 10, 3 );
function filter_function_name_687( $result, $strategy, $site_id ){
	// filter...

	return $result;
}
$result(null/string)
The value to return instead.
Default: null to continue with the query
$strategy(string)
Optional. The computational strategy to use when counting the users. Accepts either 'time' or 'memory'.
Default: 'time'
$site_id(int/null)
Optional. The site ID to count users for.
Default: current site

Changelog

Since 5.1.0 Introduced.

Where the hook is called

count_users()
pre_count_users
wp-includes/user.php 1089
$pre = apply_filters( 'pre_count_users', null, $strategy, $site_id );

Where in WP core the hook is used WordPress

Usage not found.