mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-03 12:12:25 +08:00
https://stackoverflow.com/questions/70725757/change-currency-symbol-in-woocommerce-emails-notifications/70728664
10 lines
317 B
Text
10 lines
317 B
Text
function filter_woocommerce_currency_symbol( $currency_symbol, $currency ) {
|
|
// Compare
|
|
switch( $currency ) {
|
|
case 'GBP': $currency_symbol = '€';
|
|
break;
|
|
}
|
|
|
|
return $currency_symbol;
|
|
}
|
|
add_filter( 'woocommerce_currency_symbol', 'filter_woocommerce_currency_symbol', 1, 2 );
|