woocommerce_product_brand_filter_threshold
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
woocommerce_product_brand_filter_threshold
woocommerce/includes/admin/class-wc-admin-brands.php 579
if ( $brands_count <= apply_filters( 'woocommerce_product_brand_filter_threshold', 100 ) ) {