Filters the returned comment count for a post.
$comments_numberstring|int
$post_idint
return apply_filters( 'get_comments_number', $comments_number, $post_id );
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comments_number