WP Travel allows you to select from a list of currencies and their symbols based on your needs. If the currency you require isnโ€™t already in the list, you can easily add a custom currency and its symbol using a child theme.

Steps to Add a Custom Currency

Step 1: Create and Activate a Child Theme

Step 2: Add Code to the functions.php File

  • Once your child theme is active, you can add the custom currency details by modifying the functions.php file. Use the following template code as a reference:

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');

Note: Replace variable, Currency Name, and Currency Symbol with your desired currency code, name, and symbol.

Example: Adding Kuwait Dinars (KD)

To add Kuwait Dinars (KD) with its symbol (ุฏ.ูƒ), use the following code:

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');

Example: Adding UAE Dirham (AED)

To add UAE Dirham (AED) with its symbol (ุฏ.ุฅ), use the following code:

function wp_travel_add_new_currency( $currency){
   $currency['AED'] = 'UAE';
   return $currency;
}

add_filter('wp_travel_currencies','wp_travel_add_new_currency');

function wp_travel_add_new_currency_symbol( $currency){
   $currency['AED'] = 'AED, ุฏ.ุฅ';
   return $currency;
}
add_filter('wp_travel_currency_symbols','wp_travel_add_new_currency_symbol');

Alternative: Use Code Snippets Plugin

If youโ€™re not comfortable editing the functions.php file, you can add the above code snippets using a plugin like Code Snippets. This allows you to manage custom code directly from your WordPress dashboard.

Check WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to share your thoughts!

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro