wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_count_users › WordPress过滤钩子

Since5.1.0
已弃用n/a
apply_filters( 'pre_count_users', null, $strategy, $site_id )
参数: (3)
  • (null|array) $result The value to return instead. Default null to continue with the query.
    Required: Yes
  • (string) $strategy Optional. The computational strategy to use when counting the users. Accepts either 'time' or 'memory'. Default 'time'.
    Required: Yes
  • (int) $site_id The site ID to count users for.
    Required: Yes
定义在:
文档:

Filters the user count before queries are run.

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





源码

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