woocommerce_price_filter_widget_max_amount

woocommerce_price_filter_widget_max_amount

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_price_filter_widget_max_amount') is found 1 times:

  • /includes/widgets/class-wc-widget-price-filter.php line 108
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
        }
    }
     
    $min_price = apply_filters( 'woocommerce_price_filter_widget_min_amount', floor( $min_price / $step ) * $step );
    $max_price = apply_filters( 'woocommerce_price_filter_widget_max_amount', ceil( $max_price / $step ) * $step );
     
    // If both min and max are equal, we don't need a slider.
    if ( $min_price === $max_price ) {
        return;
    }