apply_filters( "pre_count_users", null|array $result, string $strategy, int $site_id )

Filters the user count before queries are run.

Description

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

Parameters

$result

null|array

The value to return instead. Default null to continue with the query.

$strategy

string

The computational strategy to use when counting the users.

Accepts either "time" or "memory". Default "time".

$site_id

int

The site ID to count users for.

Source

File: wp-includes/user.php.

View all references

$pre = apply_filters( "pre_count_users", null, $strategy, $site_id );

Leave a Reply

Your email address will not be published. Required fields are marked *