Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created May 9, 2013 11:09
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 jameskoster/5546889 to your computer and use it in GitHub Desktop.
Save jameskoster/5546889 to your computer and use it in GitHub Desktop.
WooCommerce - Change a currency symbol
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'AUD': $currency_symbol = 'AUD$'; break;
}
return $currency_symbol;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment