woocommerce_format_localized_decimal

woocommerce_format_localized_decimal

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_format_localized_decimal') is found 1 times:

  • /includes/wc-formatting-functions.php line 357
    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