WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp defer comment counting

Description

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.

Usage

<?php wp_defer_comment_counting$defer ); ?>

Parameters

$defer
(boolean) (optional)
Default:

Return Values

(unknown) 

Change Log

Since: 2.5

Source File

wp_defer_comment_counting() is located in wp-includes/comment.php