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



comments_array › WordPress过滤钩子

Since2.1.0
已弃用n/a
apply_filters( 'comments_array', $comments_flat, $post->ID )
参数: (2)
  • (array) $comments Array of comments supplied to the comments template.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
定义在:
文档:

Filters the comments array.





源码

$wp_query->comments = apply_filters( 'comments_array', $comments_flat, $post->ID );