Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Last active April 28, 2024 19:28
Show Gist options
  • Save ibndawood/1a601ae6d2952b8b1651c83001264fb8 to your computer and use it in GitHub Desktop.
Save ibndawood/1a601ae6d2952b8b1651c83001264fb8 to your computer and use it in GitHub Desktop.
WooCommerce - Changing the currency sign of UAE Dirham
add_filter( 'woocommerce_currency_symbol', 'wc_change_uae_currency_symbol', 10, 2 );
function wc_change_uae_currency_symbol( $currency_symbol, $currency ) {
switch ( $currency ) {
case 'AED':
$currency_symbol = 'AED';
break;
}
return $currency_symbol;
}
@Joshua-Jamelo
Copy link

Just download the CURCY plugin, which gives you 2 free currencies which you can make 1 as default. No need to pay anything

@Ahsaan071
Copy link

HI! Even after pasting this code in Function.php, it isn't changing. I've also tried multiple plugins still the same issue. Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment