Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created May 18, 2021 05:08
Show Gist options
  • Select an option

  • Save wbcomdev/6df9b2c49c45ac0c63c5dbecb15469a8 to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/6df9b2c49c45ac0c63c5dbecb15469a8 to your computer and use it in GitHub Desktop.
/**
* Change a currency symbol.
*/
function wb_change_existing_currency_symbol( $currency_symbol, $currency ) {
switch ( $currency ) {
case 'AUD':
$currency_symbol = 'AUD$';
break;
}
return $currency_symbol;
}
add_filter( 'woocommerce_currency_symbol', 'wb_change_existing_currency_symbol', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment