WordPress at Your Fingertips
filter is not described

woocommerce_product_recount_terms filter-hook . WC 5.2

Filter to allow/prevent recounting of terms as it could be expensive. A likely scenario for this is when bulk importing products. We could then prevent it from recounting per product but instead recount it once when import is done. Of course this means the import logic has to support this.


add_filter( 'woocommerce_product_recount_terms', 'filter_function_name_5771' );
function filter_function_name_5771( $string ){
	// filter...

	return $string;
$string *(true false)*


Since 5.2 Introduced.

Where the hook is called

woocommerce/includes/wc-term-functions.php 404
if ( ! apply_filters( 'woocommerce_product_recount_terms', '__return_true' ) ) {

Where in WP core the hook is used WooCommerce

Usage not found.