Last active
August 29, 2015 14:17
-
-
Save NiklasHogefjord/c0a1f25abcb249b8979a to your computer and use it in GitHub Desktop.
WooCommerce - custom currency symbol
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', 'my_custom_currency_symbol', 10, 2) ; | |
function my_custom_currency_symbol( $currency_symbol, $currency ) { | |
switch( $currency ) { | |
case 'SEK': $currency_symbol = 'SEK'; | |
break; | |
} | |
return $currency_symbol; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment