_close_comments_for_old_posts

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Close comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.

Syntax

_close_comments_for_old_posts( WP_Post $posts, WP_Query $query )

ParametersParameters

$posts

(WP_Post) (Required) Post data object.

$query

(WP_Query) (Required) Query object.

ReturnReturn

(array)

SourceSource

File: wp-includes/comment.php


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.
Scroll to Top