wp_defer_comment_counting


wp_defer_comment_counting ( $defer = null )

Parameters:
  • (bool) defer
Returns:
  • (bool)
Defined at:

Description

Determines whether to defer comment counting.When setting $defer to true, all post comment counts will not be updated until $defer is set to false. When $defer is set to false, then all previously deferred updated post comment counts will then be automatically updated without having to call wp_update_comment_count() after.

Related Functions

wp_defer_term_counting, wp_update_comment_count, wp_update_comment_count_now, get_comment_count, wp_set_comment_cookies

Top Google Results

User discussions

wpseek mobile