wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_defer_term_counting › WordPress Function

Od2.5.0
Przestarzałyn/a
wp_defer_term_counting ( $defer = null )
Parametry:
  • (bool) $defer Optional. Enable if true, disable if false.
    Wymagane: Nie
    Domyślny: null
Powrót:
  • (bool) Whether term counting is enabled or disabled.
Zdefiniowane na:
Codex:

Enables or disables term counting.



Źródło

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