WordPress at a glance
function is not described

wp_defer_term_counting() WP 2.5.0

Enable or disable term counting.

  • Static. true/false. $_defer

No Hooks.

Return

true/false. Whether term counting is enabled or disabled.

Usage

wp_defer_term_counting( $defer );
$defer(true/false)
Enable if true, disable if false.
Default: null

Code of wp defer term counting: wp-includes/taxonomy.php VER 5.1.1

<?php
function wp_defer_term_counting( $defer = null ) {
	static $_defer = false;

	if ( is_bool( $defer ) ) {
		$_defer = $defer;
		// flush any deferred counts
		if ( ! $defer ) {
			wp_update_term_count( null, null, true );
		}
	}

	return $_defer;
}