Skip to content

Instantly share code, notes, and snippets.

@arfinmilondev
Created March 19, 2025 07:03
Show Gist options
  • Select an option

  • Save arfinmilondev/9744668db1f6539daa6242d709f83f72 to your computer and use it in GitHub Desktop.

Select an option

Save arfinmilondev/9744668db1f6539daa6242d709f83f72 to your computer and use it in GitHub Desktop.
woocommerce change currency symbol
//change currency symbol
add_filter('woocommerce_currency_symbol', 'milon_change_currency_symbol', 10, 2);
function milon_change_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'KWD': $currency_symbol = 'KD'; break;
}
return $currency_symbol;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment