The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

Change the currency symbol in WooCommerce

Shared by Mehraz Morshed · September 16, 2026 · @woocommerce_currency_symbol

40 views
1 upvote
Back to Snippets

This WooCommerce filter customizes the currency symbol. When the active currency is USD, it overrides the default symbol with $ (or any symbol you set) and returns it.

add_filter( 'woocommerce_currency_symbol', function( $symbol, $currency ) {
    if ( 'USD' === $currency ) {
        $symbol = '$'; // Or any other symbol
    }
    return $symbol;
}, 10, 2 );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments

Proudly supported by