Used By
Used By | Description |
---|---|
wp-includes/comment.php: wp_count_comments() | Retrieves the total comment counts for the whole site or a single post. |
Filters the comments count for a given post or the whole site.
(array|stdClass) An empty array or an object containing comment counts.
(int) The post ID. Can be 0 to represent the whole site.
File: wp-includes/comment.php
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_comments