Filter hook 'get_comments_number'

in WP Core File wp-includes/comment-template.php at line 927

Description

Filters the returned comment count for a post.

Occurrences

Filename Line Number
wp-includes/comment-template.php 927

Parameters

Type Name Description
string|int $comments_number A string representing the number of comments a post has, otherwise 0.
int $post_id Post ID.

PHP Doc

/**
	 * Filters the returned comment count for a post.
	 *
	 * @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.
	 */