wc_format_localized_price()
Format a price with WC Currency Locale settings.
Hooks from the function
Return
String
.
Usage
wc_format_localized_price( $value );
- $value(string) (required)
- Price to localize.
wc_format_localized_price() wc format localized price code WC 8.7.0
function wc_format_localized_price( $value ) { return apply_filters( 'woocommerce_format_localized_price', str_replace( '.', wc_get_price_decimal_separator(), strval( $value ) ), $value ); }