过滤返回的帖子评论计数。
原型
apply_filters( 'get_comments_number', string|int $count, int $post_id )
参数
$count
(string|int)
表示帖子的评论数量的字符串,否则为0。
$post_id
(int)
帖子ID。
源文件
路径:wp-includes/comment-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/get_comments_number/