woocommerce_product_brand_filter_threshold filter-hookWC 9.4.0

Filter the brands threshold count.

Usage

add_filter( 'woocommerce_product_brand_filter_threshold', 'wp_kama_woocommerce_product_brand_filter_threshold_filter' );

/**
 * Function for `woocommerce_product_brand_filter_threshold` filter-hook.
 * 
 * @param int $value Threshold.
 *
 * @return int
 */
function wp_kama_woocommerce_product_brand_filter_threshold_filter( $value ){

	// filter...
	return $value;
}
$value(int)
Threshold.

Changelog

Since 9.4.0 Introduced.

Where the hook is called

WC_Brands_Admin::render_product_brand_filter()
woocommerce_product_brand_filter_threshold
woocommerce/includes/admin/class-wc-admin-brands.php 574
if ( $brands_count <= apply_filters( 'woocommerce_product_brand_filter_threshold', 100 ) ) {

Where the hook is used in WooCommerce

Usage not found.