wpseek.com
A WordPress-centric search engine for devs and theme authors



comments_array › WordPress Filter Hooks

Since2.1.0
Deprecatedn/a
apply_filters( 'comments_array', $comments_flat, $post->ID )
Parameters: (2)
  • (array) $comments Array of comments supplied to the comments template.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
Defined at:
Codex:

Filters the comments array.





Source

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