Codik

Меняем символ рубля

Jan 12th, 2020
414
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
  2. function add_my_currency_symbol( $currency_symbol, $currency ) {
  3.      switch( $currency ) {
  4.          case 'RUB': $currency_symbol = 'руб'; break;
  5.      }
  6.      return $currency_symbol;
  7. }
RAW Paste Data