A WordPress-centric search engine for devs and theme authors



wp_count_comments ›

Since2.7.0
Deprecatedn/a
apply_filters( 'wp_count_comments', array()
Parameters: (2)
  • (array) $count An empty array.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
Defined at:
Codex:

Filters the comments count for a given post.





Source

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