wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_count_users › WordPress Filter Hooks

Seit5.1.0
Veraltetn/v
apply_filters( 'pre_count_users', null, $strategy, $site_id )
Parameter: (3)
  • (null|array) $result The value to return instead. Default null to continue with the query.
    Erforderlich: Ja
  • (string) $strategy Optional. The computational strategy to use when counting the users. Accepts either 'time' or 'memory'. Default 'time'.
    Erforderlich: Ja
  • (int) $site_id The site ID to count users for.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the user count before queries are run.

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





Quellcode

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