wphooks.info - get_comments_number

get_comments_number

The hook occurs in the following file:

wp-includes/comment-template.php:
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
	}

	/**
	 * Filters the returned comment count for a post.
	 *
	 * @since 1.5.0
	 *
	 * @param int $count   Number of comments a post has.
	 * @param int $post_id Post ID.
	 */
	return apply_filters( 'get_comments_number', $count, $post_id );
}

/**
 * Display the language string for the number of comments the current post has.
 *
 * @since 0.71
 *
 * @param string $zero       Optional. Text for no comments. Default false.
 * @param string $one        Optional. Text for one comment. Default false.