Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_count_users ›

Desde5.1.0
Obsoleton/a
apply_filters( 'pre_count_users', null, $strategy, $site_id )
Parâmetros: (3)
  • (null|string) $result Default null.
    Required: Yes
  • (string) $strategy Optional. The computational strategy to use when counting the users. Accepts either 'time' or 'memory'. Default 'time'.
    Required: Yes
  • (int|null) $site_id Optional. The site ID to count users for. Defaults to the current site.
    Required: Yes
Definido em:
Codex:

Filter the user count before queries are run. Return a non-null value to cause count_users() to return early.





Fonte

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