Last active
May 31, 2022 14:33
-
-
Save sunshinephotocart/7bb00889ead350295643ca858a52b95b to your computer and use it in GitHub Desktop.
Add new currency
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
// Add this to your theme's functions.php file | |
// Or use this plugin https://wordpress.org/plugins/my-custom-functions/ | |
add_filter( 'sunshine_currencies', 'my_custom_sunshine_currencies' ); | |
function my_custom_sunshine_currencies( $currencies ) { | |
$currencies['TND'] = 'Tunisian Dinar'; // TND = Currency code and then name | |
return $currencies; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment