Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: wp_update_term_count() | Updates the amount of terms in taxonomy. |
Enable or disable term counting.
(bool) (Optional) Enable if true, disable if false.
Default value: null
(bool) Whether term counting is enabled or disabled.
File: wp-includes/taxonomy.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; }
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_defer_term_counting