_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

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

Related Functions

_close_comments_for_old_post, wp_latest_comments_draft_or_post_title, wp_set_comment_status, post_comments_form_block_form_defaults, wp_check_comment_flood

Top Google Results

User discussions

wpseek mobile