You appear to be a bot. Output may be restricted
Description
Enable or disable term counting.
Usage
$bool = wp_defer_term_counting( $defer );
Parameters
- $defer
- ( bool ) optional – Optional. Enable if true, disable if false.
Returns
bool Whether term counting is enabled or disabled.
Source
File name: wordpress/wp-includes/taxonomy.php
Lines:
1 to 13 of 13
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; }