Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

shamsy commented Aug 1, 2019

Thank you

@beags121

This comment has been minimized.

Copy link

beags121 commented Oct 24, 2019

Awesome

@Eddies1207

This comment has been minimized.

Copy link

Eddies1207 commented Feb 10, 2020

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

@ibndawood

This comment has been minimized.

Copy link
Owner Author

ibndawood commented Feb 10, 2020

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

@DineWhere

This comment has been minimized.

Copy link

DineWhere commented Feb 11, 2020

Amazing, Thank you

@Eddies1207

This comment has been minimized.

Copy link

Eddies1207 commented Feb 12, 2020

yess it works ^_^ thanks ibndawood
dawood

@ibndawood

This comment has been minimized.

Copy link
Owner Author

ibndawood commented Feb 12, 2020

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

@iamjibinjacob

This comment has been minimized.

Copy link

iamjibinjacob commented Jul 4, 2020

Thank you, Working perfectly :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.