wc_get_price_decimals()

Return the number of decimals after the decimal point.


Description Description


Return Return

(int)


Top ↑

Source Source

File: includes/wc-formatting-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.3 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.