Created
March 7, 2018 14:11
-
-
Save Luminus/516e8ae43ce6766e94ab8ca8c931e9cc to your computer and use it in GitHub Desktop.
Change Arab Emirates Dirhams currency display in WooCommerce from Arabic script to AED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); | |
function change_existing_currency_symbol( $currency_symbol, $currency ) { | |
switch( $currency ) { | |
case 'AED': $currency_symbol = 'AED'; break; | |
} | |
return $currency_symbol; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment