Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created December 4, 2019 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eksiscloud/201391ea1c1b74176aa12acdb861e1f3 to your computer and use it in GitHub Desktop.
Save eksiscloud/201391ea1c1b74176aa12acdb861e1f3 to your computer and use it in GitHub Desktop.
Woocommerce: Remove euro symbol without CSS
function eksis_remove_wc_currency_symbol( $currency_symbol, $currency ) {
if (!is_cart()){
$currency_symbol = '';
return $currency_symbol;
}
}
add_filter('woocommerce_currency_symbol', 'eksis_remove_wc_currency_symbol', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment