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.

Further, 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.

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

create your travel site within minutes by wptravel.io ,buy wptravel pro