Created
May 18, 2021 05:08
-
-
Save wbcomdev/6df9b2c49c45ac0c63c5dbecb15469a8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * 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