Created
May 21, 2024 06:39
-
-
Save webtoffee-git/207c5a8d8e0b3980e0d4afdb956954d3 to your computer and use it in GitHub Desktop.
Code to change the Arabic currency symbol to AED in English - By WebToffee
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
<?php //Do not add this line of code | |
add_filter('wt_pklist_alter_currency_symbol','wt_change_currency_symbol',10,5); | |
function wt_change_currency_symbol($wc_currency_symbol,$symbols,$user_currency,$order,$price) | |
{ | |
if($user_currency=='AED') | |
{ | |
$wc_currency_symbol=' AED '; | |
} | |
return $wc_currency_symbol; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment