A WordPress-centric search engine for devs and theme authors



get_comments_number ›

Since1.5.0
Deprecatedn/a
apply_filters( 'get_comments_number', $count, $post_id )
Parameters: (2)
  • (string|int) $count A string representing the number of comments a post has, otherwise 0.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
Defined at:
Codex:

Filters the returned comment count for a post.





Source

return apply_filters( 'get_comments_number', $count, $post_id );