wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_count_many_users_posts › Les Filtres WordPress

Depuis6.8.0
Dépréciéen/a
› apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only )
Paramètres: (4)
  • () count The post counts. Return a non-null value to short-circuit.
    Requis: Oui
  • () users Array of user IDs.
    Requis: Oui
  • () post_type Single post type or array of post types to check.
    Requis: Oui
  • () public_only Whether to only return counts for public posts.
    Requis: Oui
Défini(e) dans:
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.




Source

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