comments_number WordPress Filter Hook
The comments_number WordPress hook is used to display the number of comments for a particular post. This can be useful for keeping track of how popular a post is, or for displaying the number of comments on a post in a list of posts.
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
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |