Created
May 10, 2020 01:13
-
-
Save ZgrK/7049bb6cc834e8cd8c0a4a3d10af282c to your computer and use it in GitHub Desktop.
WooCommerce ₺ Sembolunu TL ile değiştir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ₺ Sembolunu TL ile değiştir | |
* Wordpress Yardım | |
* https://wordpressyardim.com | |
*/ | |
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); | |
function change_existing_currency_symbol( $currency_symbol, $currency ) { | |
switch( $currency ) { | |
case 'TRY': $currency_symbol = 'TL'; break; | |
} | |
return $currency_symbol; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment