Created
March 19, 2025 07:03
-
-
Save arfinmilondev/9744668db1f6539daa6242d709f83f72 to your computer and use it in GitHub Desktop.
woocommerce change currency symbol
This file contains hidden or 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
| //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