过滤器::过滤帖子返回的注释计数。
apply_filters( ‘get_comments_number’, string|int $count , int $post_id )
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $count | (string | int) | 一个字符串,表示一篇文章的评论数,否则为0。 |
| $post_id | (int) | 邮政编码。 |
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.5.0 | wp-includes/comment-template.php:866 | 1 | 0 |
过滤器::过滤帖子返回的注释计数。
apply_filters( ‘get_comments_number’, string|int $count , int $post_id )
| 参数 | 类型 | 说明 |
|---|---|---|
| $count | (string | int) | 一个字符串,表示一篇文章的评论数,否则为0。 |
| $post_id | (int) | 邮政编码。 |
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.5.0 | wp-includes/comment-template.php:866 | 1 | 0 |
之前