woocommerce_product_brand_filter_threshold
Filter the brands threshold count.
Использование
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.
Список изменений
С версии 9.4.0 | Введена. |
Где вызывается хук
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 ) ) {