Core Function
View Source on Trac ↗ _close_comments_for_old_posts()
_close_comments_for_old_posts( mixed $posts, mixed $query ) Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $posts WP_Post | Post data object. Required |
| $query WP_Query | Query object. Required |
Return Value
(array)
array
Function Information
Since Version
2.7.0
Source File
wp-includes/comment.php
Advertisement