Used By
| Used By | Description |
|---|---|
| wp-includes/comment-template.php: get_comments_number() | Retrieves the amount of comments a post has. |
Filters the returned comment count for a post.
(string|int) A string representing the number of comments a post has, otherwise 0.
(int) Post ID.
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comments_number