woocommerce_price_filter_widget_step хук-фильтр . WC 1.0
Round values to nearest 10 by default.
Использование
add_filter( 'woocommerce_price_filter_widget_step', 'filter_function_name_2288' ); function filter_function_name_2288( $10 ){ // filter... return $10; }
- $10
- -
Где вызывается хук
woocommerce_price_filter_widget_step
woocommerce/includes/widgets/class-wc-widget-price-filter.php 87
$step = max( apply_filters( 'woocommerce_price_filter_widget_step', 10 ), 1 );