WordPress at a glance
filter is not described

wc_get_price_decimals filter-hook . WC 2.3

Return the number of decimals after the decimal point.

Usage

add_filter( 'wc_get_price_decimals', 'filter_function_name_1075' );
function filter_function_name_1075( $option ){
	// filter...

	return $option;
}
$option
-

Changelog

Since 2.3 Introduced.

Where the hook is called

wc_get_price_decimals()
wc_get_price_decimals
woocommerce/includes/wc-formatting-functions.php 535
return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) );

Where in WP core the hook is used WooCommerce

Usage not found.