W3cubDocs

/WordPress

apply_filters( 'comments_array', array $comments, int $post_ID )

Filters the comments array.

Description

Parameters

$comments

(array) Array of comments supplied to the comments template.

$post_ID

(int) Post ID.

Source

File: wp-includes/comment-template.php

View on Trac

Changelog

Version Description
2.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_array