wpseek.com
A WordPress-centric search engine for devs and theme authors



get_comments_number › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'get_comments_number', $comments_number, $post_id )
Parameters: (2)
  • (string|int) $comments_number 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', $comments_number, $post_id );