woocommerce_format_localized_price

woocommerce_format_localized_price

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_format_localized_price') is found 1 times:

  • /includes/wc-formatting-functions.php line 344
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    * @param  string $value Price to localize.
     * @return string
     */
    function wc_format_localized_price( $value ) {
        return apply_filters( 'woocommerce_format_localized_price', str_replace( '.', wc_get_price_decimal_separator(), strval( $value ) ), $value );
    }
     
    /**
     * Format a decimal with the decimal separator for prices or PHP Locale settings.
     *
     * @param  string $value Decimal to localize.