There is a list of currency types along with their symbol which you can choose according to the currency type of your need. Apart from the existing list, you can also add a currency type and symbol if you want the one which is not listed prior.
To add the currency of your need, you have to go through the child theme.
To know more about the child theme, please refer to the below-given link :
http://wptravel.io/how-to-create-a-child-theme/
After creating and activating the child theme, refer below-given code, add the details of the currency, and finally add the code to your child theme functions.php file.
Template Code
function wp_travel_add_new_currency( $currency){ $currency['variable'] = 'Currency type'; return $currency; } add_filter('wp_travel_currencies','wp_travel_add_new_currency'); function wp_travel_add_new_currency_symbol( $currency){ $currency['variable'] = 'currency_symbol'; return $currency; } add_filter('wp_travel_currency_symbols','wp_travel_add_new_currency_symbol');
Example Code
If you want to add the ‘Kuwait Dinars ‘ in the existing list of currencies, add the below-given code
in your child theme functions.php file.
function wp_travel_add_new_currency( $currency){ $currency['KD'] = 'Kuwait Dinars'; return $currency; } add_filter('wp_travel_currencies','wp_travel_add_new_currency'); function wp_travel_add_new_currency_symbol( $currency){ $currency['KD'] = 'د.ك'; return $currency; } add_filter('wp_travel_currency_symbols','wp_travel_add_new_currency_symbol');
Also, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Facebook, Instagram, and Twitter.
Further, if you have any queries, please submit them to our Contact page.
