WP Travel provides the feature regarding removing all the countries(options) and adding only one country in the dropdown located in forms(traveler info, billing address forms) on the checkout page.

You can remove all the countries(options) and add only one country in the dropdown located in forms(traveler info, billing address forms) on the checkout page, by adding the following given code in the functions.php file of your child theme.

function wp_travel_customized_countries( $countries ) {
  return array( 'ZA' => __( 'South Africa', 'wp-travel' ) );
}

add_filter( 'wp_travel_country_list', 'wp_travel_customized_countries' );

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

Output:

remove all the countries and add one

If you want to add more than one country option in the dropdown then please once refer to our Knowledgebase.

Also, if you want to learn more about the filter hook that is used to remove all the countries(options) and add only one country in the dropdown located in forms(traveler info, billing address forms) on the checkout page, please once refer specific hook page.

Check the 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