Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created April 25, 2012 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pippinsplugins/2493260 to your computer and use it in GitHub Desktop.
Save pippinsplugins/2493260 to your computer and use it in GitHub Desktop.
EDD Currency Function
function edd_get_currencies() {
$currencies = apply_filters('edd_currencies', array(
'USD' => __('US Dollars ($)', 'edd'),
'EUR' => __('Euros (€)', 'edd'),
'GBP' => __('Pounds Sterling (£)', 'edd'),
'AUD' => __('Australian Dollars ($)', 'edd'),
'BRL' => __('Brazilian Real ($)', 'edd'),
'CAD' => __('Canadian Dollars ($)', 'edd'),
'CZK' => __('Czech Koruna', 'edd'),
'DKK' => __('Danish Krone', 'edd'),
'HKD' => __('Hong Kong Dollar ($)', 'edd'),
'HUF' => __('Hungarian Forint', 'edd'),
'ILS' => __('Israeli Shekel', 'edd'),
'JPY' => __('Japanese Yen (¥)', 'edd'),
'MYR' => __('Malaysian Ringgits', 'edd'),
'MXN' => __('Mexican Peso ($)', 'edd'),
'NZD' => __('New Zealand Dollar ($)', 'edd'),
'NOK' => __('Norwegian Krone', 'edd'),
'PHP' => __('Philippine Pesos', 'edd'),
'PLN' => __('Polish Zloty', 'edd'),
'SGD' => __('Singapore Dollar ($)', 'edd'),
'SEK' => __('Swedish Krona', 'edd'),
'CHF' => __('Swiss Franc', 'edd'),
'TWD' => __('Taiwan New Dollars', 'edd'),
'THB' => __('Thai Baht', 'edd'),
'INR' => __('Indian Rupee', 'edd')
)
);
return $currencies;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment