apply_filters( 'pre_count_users', null|string $result , string $strategy , int|null $site_id )
Filter the user count before queries are run. Return a non-null value to cause count_users() to return early.
Description Description
Parameters Parameters
- $result
-
(null|string) Default null.
- $strategy
-
(string) The computational strategy to use when counting the users. Accepts either 'time' or 'memory'. Default 'time'.
- $site_id
-
(int|null) The site ID to count users for. Defaults to the current site.
Source Source
File: wp-includes/user.php
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |