Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Last active July 13, 2020 15:39
Embed
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';
break;
}
return $currency_symbol;
}
@shamsy
Copy link

shamsy commented Aug 1, 2019

Thank you

@beags121
Copy link

Awesome

@Eddies1207
Copy link

Hi ibndawood -I'm gonna paste that code to my Parent Theme Editor? functions.php?

@ibndawood
Copy link
Author

You need to add this to your child theme's functions.php. Please use a child theme for all your customisations.

@DineWhere
Copy link

Amazing, Thank you

@Eddies1207
Copy link

yess it works ^_^ thanks ibndawood
dawood

@ibndawood
Copy link
Author

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

@iamjibinjacob
Copy link

Thank you, Working perfectly :-)

@waqasbaberpk
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

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