# Change a Currency Symbol

> Replaces the symbol shown for a currency, for example "AU$" instead of "$" so international shoppers know which dollar you charge in.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, currency, prices
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-currency-symbol/

## Code

```php
add_filter( 'woocommerce_currency_symbol', function ( $symbol, $currency ) {
    $target     = 'AUD'; // ISO currency code to change.
    $new_symbol = 'AU$'; // Symbol to show.

    return $currency === $target ? $new_symbol : $symbol;
}, 10, 2 );
```

## Notes

Set $currency to the ISO code and $symbol to what should be displayed.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Change a Currency Symbol" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
