Skip to content

Instantly share code, notes, and snippets.

@anibalardid
Created May 13, 2019 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anibalardid/3daa2a5e0a276da7cfd80787c4582edd to your computer and use it in GitHub Desktop.
Save anibalardid/3daa2a5e0a276da7cfd80787c4582edd to your computer and use it in GitHub Desktop.
change woocomerce currency symbol #wordpress
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