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_3909', 10, 3 );
function filter_function_name_3909( $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

Список изменений

С версии 5.1.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.