woocommerce_format_localized_decimal

woocommerce_format_localized_decimal

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_format_localized_decimal') is found 1 times:

  • /includes/wc-formatting-functions.php line 357
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    function wc_format_localized_decimal( $value ) {
        $locale        = localeconv();
        $decimal_point = isset( $locale['decimal_point'] ) ? $locale['decimal_point'] : '.';
        $decimal       = ( ! empty( wc_get_price_decimal_separator() ) ) ? wc_get_price_decimal_separator() : $decimal_point;
        return apply_filters( 'woocommerce_format_localized_decimal', str_replace( '.', $decimal, strval( $value ) ), $value );
    }
     
    /**
     * Format a coupon code.
     *
     * @since  3.0.0