If you want to change the default country displayed in the country field in the booking form of the checkout page then you can do so using the filter code. To change the default country in the booking form on the checkout page, please add the below-given code in the functions.php file of your child theme.

before change default country

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

 function wp_travel_customize_booking_form($fields) {
   $fields['traveller_fields']['country']['default'] = 'NL';
   $fields['billing_fields']['country']['default'] = 'NL';
   return $fields;
add_filter( 'wp_travel_checkout_fields', 'wp_travel_customize_booking_form', 99 );

Please replace the “NL” country code with the required country code.


change default country

Also, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on FacebookInstagram, and Twitter.

Further, if you have any queries, please submit them to our Contact page.