close Notifications

Adding Currency Support

Mayosis General
Mayosis - Digital Marketplace WordPress ThemeMayosis - Digital Marketplace WordPress Theme, December 21, 2020

The “edd_currencies” filter allows you to easily add support for your own additional currencies to Easy Digital Downloads. 

Let’s say, for example, that you want to add support for the Indian Rupee (already supported, so this is only an example). The sample function below would add the support:

 function mayosis_extra_edd_currencies( $currencies ) {
	$currencies['BDT'] = __('Bangladeshi Taka', 'your_domain');
	return $currencies;
}
add_filter('edd_currencies', 'mayosis_extra_edd_currencies');


The array key is the currency code and the value is the currency label.

Note: It is important that you know that not all payment gateways support all currencies. Check to make sure that your chosen gateway supports the currency you wish to use before launching your store. Once added, test purchase to confirm the gateway uses the correct currency.

Currency codes may also be added without using any code through this plugin

Do you find this article useful?

0 0

Enter Video URL (Youtube or Vimeo)