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



wp_count_comments › Filtr WordPress Hooks

Od2.7.0
Przestarzałyn/a
› apply_filters( 'wp_count_comments', array()
Parametry: (2)
  • () count An empty array or an object containing comment counts.
    Wymagane: Tak
  • () post_id The post ID. Can be 0 to represent the whole site.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the comments count for a given post or the whole site.





Źródło

$filtered = apply_filters( 'wp_count_comments', array(), $post_id );