woocommerce_price_filter_widget_step

woocommerce_price_filter_widget_step

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('woocommerce_price_filter_widget_step') is found 1 times:

  • /includes/widgets/class-wc-widget-price-filter.php line 87
    84
    85
    86
    87
    88
    89
    90
    91
    92
    wp_enqueue_script( 'wc-price-slider' );
     
    // Round values to nearest 10 by default.
    $step = max( apply_filters( 'woocommerce_price_filter_widget_step', 10 ), 1 );
     
    // Find min and max price in current result set.
    $prices    = $this->get_filtered_price();
    $min_price = $prices->min_price;
    $max_price = $prices->max_price;