wc_get_price_decimals

wc_get_price_decimals

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('wc_get_price_decimals') is found 1 times:

  • /includes/wc-formatting-functions.php line 539
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    * @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.