Filters the returned comment count for a post.
$comments_numberstring|int$post_idintwp-includes/comment-template.php:933get_comments_number() * * @since 1.5.0 * * @param string|int $comments_number A string representing the number of comments a post has, otherwise 0. * @param int $post_id Post ID. */ return apply_filters( 'get_comments_number', $comments_number, $post_id );} /** * Displays the language string for the number of comments the current post has. * * @since 0.71Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.