WordPress at a glance
filter is not described

pre_count_users filter-hook . WP 5.1.0

Filter 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_6564', 10, 3 );
function filter_function_name_6564( $result, $strategy, $site_id ){
	// filter...

	return $result;
}
$result(null/string)
Default null.
$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 894
$pre = apply_filters( 'pre_count_users', null, $strategy, $site_id );

Where the hook is used (in WP core)

Usage not found!