WordPress at Your Fingertips
filter is not described

get_comments_number filter-hook . WP 1.5.0

Filters the returned comment count for a post.


add_filter( 'get_comments_number', 'filter_function_name_1207', 10, 2 );
function filter_function_name_1207( $count, $post_id ){
	// filter...

	return $count;
A string representing the number of comments a post has, otherwise 0.
Post ID.

Where the hook is called

wp-includes/comment-template.php 872
return apply_filters( 'get_comments_number', $count, $post_id );

Where in WP core the hook is used WordPress

Usage not found.