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



get_comments_number › WordPress过滤钩子

Since1.5.0
已弃用n/a
apply_filters( 'get_comments_number', $comments_number, $post_id )
参数: (2)
  • (string|int) $comments_number 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', $comments_number, $post_id );