Filter hook 'comments_number'

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

Description

Filters the comments count for display.

Occurrences

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

Parameters

Type Name Description
string $comments_number_text A translatable string formatted based on whether the count is equal to 0, 1, or 1+.
int $comments_number The number of post comments.

PHP Doc

/**
	 * Filters the comments count for display.
	 *
	 * @since 1.5.0
	 *
	 * @see _n()
	 *
	 * @param string $comments_number_text A translatable string formatted based on whether the count
	 *                                     is equal to 0, 1, or 1+.
	 * @param int    $comments_number      The number of post comments.
	 */