# Add a Custom Currency to Easy Digital Downloads

> Adds a currency that Easy Digital Downloads does not list by default, with its own symbol, so you can choose it in Downloads > Settings > General.

- Type: PHP
- Runs: Run everywhere
- Category: [Easy Digital Downloads](https://wpide.com/library/category/edd/)
- Requires: Easy Digital Downloads
- Tags: edd, currency, international, settings
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/edd-add-custom-currency/

## Code

```php
$wpide_edd_currency = array(
    'code'   => 'GHS',            // ISO 4217 code.
    'name'   => 'Ghanaian Cedi',
    'symbol' => 'GH₵',
);

add_filter( 'edd_currencies', function ( $currencies ) use ( $wpide_edd_currency ) {
    $currencies[ $wpide_edd_currency['code'] ] = sprintf( '%1$s (%2$s)', $wpide_edd_currency['name'], $wpide_edd_currency['symbol'] );

    return $currencies;
} );

add_filter( 'edd_currency_symbol', function ( $symbol, $code ) use ( $wpide_edd_currency ) {
    return $code === $wpide_edd_currency['code'] ? $wpide_edd_currency['symbol'] : $symbol;
}, 10, 2 );
```

## Notes

Use the official three-letter ISO code, and check that your payment gateway supports the currency.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Add a Custom Currency to Easy Digital Downloads" 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/
