wc_get_price_decimals

wc_get_price_decimals

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('wc_get_price_decimals') is found 1 times:

  • /includes/wc-formatting-functions.php line 539
     * @since  2.3
     * @return int
     */
    function wc_get_price_decimals() {
    	return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) );
    }
    
    /**
     * Format the price with a currency symbol.
     *
     * @param  float $price Raw price.