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
-
The value to return instead. Default null to continue with the query.
- $strategy
-
The computational strategy to use when counting the users.<br> Accepts either 'time' or 'memory'. Default 'time'.
- $site_id
-
The site ID to count users for.
Source
File: wp-includes/user.php
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |