wc_get_price_decimals хук-фильтр . WC 2.3
Return the number of decimals after the decimal point.
Использование
add_filter( 'wc_get_price_decimals', 'filter_function_name_9630' ); function filter_function_name_9630( $option ){ // filter... return $option; }
- $option
- -
Список изменений
С версии 2.3 | Введена. |
Где вызывается хук
wc_get_price_decimals
woocommerce/includes/wc-formatting-functions.php 535
return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) );