formatted_woocommerce_price хук-фильтр . WC 1.0
Использование
add_filter( 'formatted_woocommerce_price', 'filter_function_name_9727', 10, 5 ); function filter_function_name_9727( $number_format, $price, $args_decimals, $args_decimal_separator, $args_thousand_separator ){ // filter... return $number_format; }
- $number_format
- -
- $price
- -
- $args_decimals
- -
- $args_decimal_separator
- -
- $args_thousand_separator
- -
Где вызывается хук
woocommerce/includes/wc-formatting-functions.php 580
$price = apply_filters( 'formatted_woocommerce_price', number_format( $price, $args['decimals'], $args['decimal_separator'], $args['thousand_separator'] ), $price, $args['decimals'], $args['decimal_separator'], $args['thousand_separator'] );