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