Change the currency symbol from '$' to 'USD' in Woocommerce
add_filter( 'woocommerce_currency_symbol', 'change_currency_symbol', 10, 2 ); | |
function change_currency_symbol( $symbols, $currency ) { | |
if ( 'USD' === $currency ) { | |
return 'USD'; | |
} | |
if ( 'EUR' === $currency ) { | |
return 'Euro'; | |
} | |
if ( 'AED' === $currency ) { | |
return 'AED'; | |
} | |
return $symbols; | |
} |
This comment has been minimized.
This comment has been minimized.
Thank you! :) |
This comment has been minimized.
This comment has been minimized.
Thank you for the code! |
This comment has been minimized.
This comment has been minimized.
thanks for the code, but the code shown everywhere, I want to show it an only single product page |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Thank you for the code...