-
-
Save enrikberisha/01c8766224ee6f76e0f5f725f436d855 to your computer and use it in GitHub Desktop.
Change the currency symbol from '$' to 'USD' in Woocommerce
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
add_filter( 'woocommerce_currency_symbol', 'change_currency_symbol', 10, 2 ); | |
function change_currency_symbol( $symbols, $currency ) { | |
if ( 'USD' === $currency ) { | |
return 'USD'; | |
} | |
return $symbols; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment