pre_count_users

最后更新于:2021-11-27 18:46:12

apply_filters( ‘pre_count_users’, null|string $result, string $strategy, int|null $site_id )

Filters the user count before queries are run.

参数

$result

(null|string)
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|null)
The site ID to count users for. Defaults to the current site.

源文件

文件: gc-includes/user.php

View on Trac