So, are you looking forward to displaying full country names in email templates?

Well, WP Travel / WP Travel Pro comes with pre-designed email templates that are automatically sent to customers at different stages of the booking process.

These templates offer flexibility in configuring the display of contact information such as name, phone, email, and country in emails and booking tables

By default, the plugins display the two-letter country code (e.g., “US” for the United States).

However, the release of WP Travel v8.8.0 introduces a new hook that allows you to display the full country name (e.g., “United States”) instead.

How to Display the Full Country in the Mail?

Learn more: How to Customize Email Templates for the Download Email?

To display the full country name in emails and booking tables you can do one of the following:

1. Please add the following code to the functions.php file of your child theme.

add_filter( 'wptravel_show_full_country_name', function() {
return true;
} );

2. Or you can simply add it through code snippets.

For detailed information on creating a child theme, please refer to our Knowledgebase.

This filter will override the plugin’s default behavior and ensure that the full country name is shown in emails and booking tables.

How to Display the Full Country in the Mail?

You can modify the default email templates available in the WP Travel plugin.

So, by following the above steps, you can display full country names in email templates precisely.