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



wp_count_comments ›

Since2.7.0
已弃用n/a
apply_filters( 'wp_count_comments', array()
参数: (2)
  • (array) $count An empty array.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
定义在:
文档:

Filters the comments count for a given post.





源码

$filtered = apply_filters( 'wp_count_comments', array(), $post_id );