wc_format_localized_price( string $value )
Format a price with WC Currency Locale settings.
Description Description
Parameters Parameters
- $value
-
(Required) Price to localize.
Return Return
(string)
Source Source
File: includes/wc-formatting-functions.php
function wc_format_localized_price( $value ) { return apply_filters( 'woocommerce_format_localized_price', str_replace( '.', wc_get_price_decimal_separator(), strval( $value ) ), $value ); }