Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
comments_array

Description

Applied to the array of comments for a post in the comments_template function. Filter function arguments: array of comment information structures, post ID.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for comments_array

This database has information for all major versions from WP 1.2.1 through 6.2.

Version File Line Type
2.1 wp-includes/comment-template.php 293 View in context filter
2.2 wp-includes/comment-template.php 302 View in context filter
2.3 wp-includes/comment-template.php 301 View in context filter
2.5 wp-includes/comment-template.php 659 View in context filter
2.6 wp-includes/comment-template.php 662 View in context filter
2.7 wp-includes/comment-template.php 825 View in context filter
2.8 wp-includes/comment-template.php 833 View in context filter
2.9 wp-includes/comment-template.php 856 View in context filter
3.0 wp-includes/comment-template.php 868 View in context filter
3.1 wp-includes/comment-template.php 892 View in context filter
3.2 wp-includes/comment-template.php 892 View in context filter
3.3 wp-includes/comment-template.php 892 View in context filter
3.4 wp-includes/comment-template.php 894 View in context filter
3.5 wp-includes/comment-template.php 891 View in context filter
3.6 wp-includes/comment-template.php 891 View in context filter
3.7 wp-includes/comment-template.php 1061 View in context filter
3.8 wp-includes/comment-template.php 1068 View in context filter
3.9 wp-includes/comment-template.php 1121 View in context filter
4.0 wp-includes/comment-template.php 1132 View in context filter
4.1 wp-includes/comment-template.php 1185 View in context filter
4.2 wp-includes/comment-template.php 1184 View in context filter
4.3 wp-includes/comment-template.php 1202 View in context filter
4.4 wp-includes/comment-template.php 1348 View in context filter
4.5 wp-includes/comment-template.php 1396 View in context filter
4.6 wp-includes/comment-template.php 1437 View in context filter
4.7 wp-includes/comment-template.php 1437 View in context filter
4.8 wp-includes/comment-template.php 1439 View in context filter
4.9 wp-includes/comment-template.php 1440 View in context filter
5.0 wp-includes/comment-template.php 1448 View in context filter
5.1 wp-includes/comment-template.php 1477 View in context filter
5.2 wp-includes/comment-template.php 1477 View in context filter
5.3 wp-includes/comment-template.php 1475 View in context filter
5.4 wp-includes/comment-template.php 1494 View in context filter
5.5 wp-includes/comment-template.php 1503 View in context filter
5.6 wp-includes/comment-template.php 1518 View in context filter
5.7 wp-includes/comment-template.php 1518 View in context filter
5.8 wp-includes/comment-template.php 1518 View in context filter
5.9 wp-includes/comment-template.php 1518 View in context filter
6.0 wp-includes/comment-template.php 1520 View in context filter
6.1 wp-includes/comment-template.php 1514 View in context filter
6.2 wp-includes/comment-template.php 1555 View in context filter

Related Hooks

We find related hooks using word stems. comments_array has 2 significant word stem(s): comments, array. Note that some of the hooks below may not appear in all versions of WP.