On this page
apply_filters( 'comments_number', string $output, int $number )
Filters the comments count for display.
Description
See also
Parameters
$outputstring-
A translatable string formatted based on whether the count is equal to 0, 1, or 1+.
$numberint-
The number of post comments.
Source
File: wp-includes/comment-template.php. View all references
return apply_filters( 'comments_number', $output, $number );
Related
Used By
| Used By | Description |
|---|---|
| get_comments_number_text() wp-includes/comment-template.php | Displays the language string for the number of comments the current post has. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_number