Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions inc/functions/currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function wu_get_currencies(): array {
'YER' => __('Yemeni Rial', 'ultimate-multisite'),
'ZAR' => __('South African Rand', 'ultimate-multisite'),
'ZMW' => __('Zambian Kwacha', 'ultimate-multisite'),
'IRR' => __('Iranian Rial', 'ultimate-multisite'),
]
);

Expand Down Expand Up @@ -192,6 +193,9 @@ function wu_get_currency_symbol($currency = '') {
case 'BBD':
$currency_symbol = '$';
break;
case 'IRR':
$currency_symbol = '﷼';
break;
case 'AFN':
$currency_symbol = '؋';
break;
Expand Down Expand Up @@ -426,6 +430,7 @@ function wu_is_zero_decimal_currency($currency = 'USD') {
'XAF', // Central African CFA Franc
'XOF', // West African CFA Franc
'XPF', // CFP Franc
'IRR', // Iranian Rial
];

return apply_filters('wu_is_zero_decimal_currency', in_array($currency, $zero_dec_currencies, true));
Expand Down