Skip to content

Instantly share code, notes, and snippets.

@agusmu
Forked from jameskoster/functions.php
Last active December 19, 2015 17:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save agusmu/5992450 to your computer and use it in GitHub Desktop.
Save agusmu/5992450 to your computer and use it in GitHub Desktop.
Woocommerce - Change Denmark currency from kr to DKK
add_filter('woocommerce_currency_symbol', 'change_denmark_existing_currency_symbol', 10, 2);
function change_denmark_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'DKK' : $currency_symbol = 'DKK'; break;
}
return $currency_symbol;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment