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



pre_count_many_users_posts › WordPress Filter Hooks

Seit6.8.0
Veraltetn/v
apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only )
Parameter: (4)
  • (string[]|null) $count The post counts. Return a non-null value to short-circuit.
    Erforderlich: Ja
  • (int[]) $users Array of user IDs.
    Erforderlich: Ja
  • (string|string[]) $post_type Single post type or array of post types to check.
    Erforderlich: Ja
  • (bool) $public_only Whether to only return counts for public posts.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to short-circuit performing the post counts.

When filtering, return an array of posts counts as strings, keyed by the user ID.





Quellcode

$pre = apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only );