woocommerce_format_sale_price хук-фильтр . WC 3.0.0
Format a sale price for display.
Использование
add_filter( 'woocommerce_format_sale_price', 'filter_function_name_2253', 10, 3 ); function filter_function_name_2253( $regular_price, $sale_price, $sale_price ){ // filter... return $regular_price; }
- $regular_price(строка)
- Regular price.
- $sale_price(строка)
- Sale price.
- $sale_price
- -
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
woocommerce_format_sale_price
woocommerce/includes/wc-formatting-functions.php 1244
return apply_filters( 'woocommerce_format_sale_price', $price, $regular_price, $sale_price );