WordPress at Your Fingertips
function is not described

wc_get_price_decimals() WC 2.3

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.

Code of wc_get_price_decimals() WC 6.1.1

function wc_get_price_decimals() {
	return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) );
}