_close_comments_for_old_posts


_close_comments_for_old_posts ( $posts, $query )

Access:
  • private
Parameters:
  • (WP_Post) $posts Post data object.
  • (WP_Query) $query Query object.
Returns:
  • (array)
Defined at:

Description

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

Related Functions

_close_comments_for_old_post, wp_set_comment_status, wp_check_comment_flood, comments_rss, wp_set_comment_cookies

Top Google Results

User discussions

wpseek mobile