Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created May 21, 2024 06:39
Show Gist options
  • Save webtoffee-git/207c5a8d8e0b3980e0d4afdb956954d3 to your computer and use it in GitHub Desktop.
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
<?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