how can I change currency symbol in woocommerce

I’m beginner with woocommerce and i have a question .
how can i change an existing currency symbol woocommerce in the whole of website.

I have tried this code but is not working :

add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);function change_existing_currency_symbol( $currency_symbol, $currency ) {switch( $currency ) {
      case 'د.م.': $currency_symbol = 'MAD'; break;}return $currency_symbol;}

Read more here: how can I change currency symbol in woocommerce

Leave a Reply

Your email address will not be published. Required fields are marked *