Advertisement
majeedraza

WooCommerce - Change a currency symbol

Apr 19th, 2020
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. // WooCommerce - Change a currency symbol
  2. add_filter( 'woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
  3. function change_existing_currency_symbol( $currency_symbol, $currency ) {
  4.   switch( $currency ) {
  5.     case 'SEK':
  6.       $currency_symbol = 'SEK';
  7.       break;
  8.   }
  9.   return $currency_symbol;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement