woocommerce_price_filter_widget_max_amount
Usage
add_filter( 'woocommerce_price_filter_widget_max_amount', 'wp_kama_woocommerce_price_filter_widget_max_amount_filter' ); /** * Function for `woocommerce_price_filter_widget_max_amount` filter-hook. * * @param $ceil() * $step * * @return */ function wp_kama_woocommerce_price_filter_widget_max_amount_filter( $ceil() * $step ){ // filter... return $ceil() * $step; }
- $ceil() * $step
- -
Where the hook is called
woocommerce_price_filter_widget_max_amount
woocommerce/includes/widgets/class-wc-widget-price-filter.php 108
$max_price = apply_filters( 'woocommerce_price_filter_widget_max_amount', ceil( $max_price / $step ) * $step );