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.

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.

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.
WP Travel Editorial is a team of WordPress and travel industry experts dedicated to delivering technical resources, travel business guides, and general travel insights. With over 10 years of experience, the team provides in-depth release notes, feature updates, and informative articles to help tour operators and travel enthusiasts succeed in the evolving travel landscape.
From plugin updates and industry trends to practical travel resources, WP Travel Editorial shares valuable content that supports both the travel industry and avid travelers.





