Filter hook 'wp_count_comments'

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

Description

Filters the comments count for a given post or the whole site.

Occurrences

Filename Line Number
wp-includes/comment.php 1413

Parameters

Type Name Description
array|stdClass $count An empty array or an object containing comment counts.
int $post_id The post ID. Can be 0 to represent the whole site.

PHP Doc

/**
	 * Filters the comments count for a given post or the whole site.
	 *
	 * @since 2.7.0
	 *
	 * @param array|stdClass $count   An empty array or an object containing comment counts.
	 * @param int            $post_id The post ID. Can be 0 to represent the whole site.
	 */