Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_defer_term_counting ›

Da2.5.0
Deprecaton/a
wp_defer_term_counting ( $defer = null )
Parametri:
  • (bool) $defer Optional. Enable if true, disable if false.
    Richiesto: No
    Default: null
Ritorna:
  • (bool) Whether term counting is enabled or disabled.
Definito a:
Codex:

Enable or disable term counting.



Sorgenti

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;
}