woocommerce_change_term_counts

woocommerce_change_term_counts

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_change_term_counts') is found 1 times:

  • /includes/wc-term-functions.php line 572
    	 * @since 2.1.0
    	 *
    	 * @param array $valid_taxonomies List of taxonomy slugs.
    	 */
    	$valid_taxonomies   = apply_filters( 'woocommerce_change_term_counts', array( 'product_cat', 'product_tag' ) );
    	$current_taxonomies = array_intersect( (array) $taxonomies, $valid_taxonomies );
    
    	if ( empty( $current_taxonomies ) ) {
    		return $terms;
    	}
    
    

See this hook used in plugins: