wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_count_many_users_posts › Filtr WordPress Hooks

Od6.8.0
Przestarzałyn/a
› apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only )
Parametry: (4)
  • () count The post counts. Return a non-null value to short-circuit.
    Wymagane: Tak
  • () users Array of user IDs.
    Wymagane: Tak
  • () post_type Single post type or array of post types to check.
    Wymagane: Tak
  • () public_only Whether to only return counts for public posts.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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