W3cubDocs

/WordPress

apply_filters( 'comments_number', string $output, int $number )

Filters the comments count for display.

Description

See also

Parameters

$output

(string) A translatable string formatted based on whether the count is equal to 0, 1, or 1+.

$number

(int) The number of post comments.

Source

File: wp-includes/comment-template.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_number