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.


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

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

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

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

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

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

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

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