wc_get_price_decimals()
Return the number of decimals after the decimal point.
Hooks from the function
Return
Int
.
Usage
wc_get_price_decimals();
Changelog
Since 2.3 | Introduced. |
wc_get_price_decimals() wc get price decimals code WC 9.6.1
function wc_get_price_decimals() { return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) ); }