WordPress开发者和主题制作者的搜索引擎



get_comments_number ›

Since1.5.0
已弃用n/a
apply_filters( 'get_comments_number', $count, $post_id )
参数: (2)
  • (string|int) $count A string representing the number of comments a post has, otherwise 0.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
定义在:
文档:

Filters the returned comment count for a post.





源码

return apply_filters( 'get_comments_number', $count, $post_id );