wc_get_price_decimals()
Return the number of decimals after the decimal point.
Хуки из функции
Возвращает
int
.
Использование
wc_get_price_decimals();
Список изменений
С версии 2.3 | Введена. |
Код wc_get_price_decimals() wc get price decimals WC 8.7.0
function wc_get_price_decimals() { return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) ); }