Skip to content

Instantly share code, notes, and snippets.

Last active March 28, 2023 17:18
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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';
return $currency_symbol;
Copy link

Amazing, Thank you

Copy link

yess it works ^_^ thanks ibndawood

Copy link

@Eddies1207 - You are welcome. Please do check out our premium themes here:

Copy link

Thank you, Working perfectly :-)

Copy link

Hi Guys, Hope you good. Yar I want to change the symbol to AED but its not working in my child theme function.php file ...i copied the same code and paste it in the last bottom

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

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