International Telephone Box

Documentation

Phone Box → Countries: every option

Choose which countries the phone field offers, the default and fallback country, preferred countries and IP detection in Phone Box → Countries.

Last updated

View as Markdown

Phone Box → Countries controls which countries the phone field offers, which one it starts on, and optional IP detection. Changes are saved with Save changes; Reset to defaults restores defaults. The Preview shows the field as you edit, and it never contacts ipapi.co.

Countries to offer

The Countries to offer setting has three modes:

  • All countries (default): offer all 243 countries.
  • Only selected: offer only the countries you pick in Selected countries.
  • All except selected: offer everything except the countries you remove.

A searchable Search countries box helps you find countries by name or dial code. Any country you do not offer cannot be used: a number from a country you don't offer is rejected, in the browser and again on the server (see WooCommerce for orders).

Initial country

Default country (shown as Initial country) sets which country the field starts on. Choose a specific country, or Detect from visitor's location. The default is Detect from visitor's location.

Fallback country

Fallback country — "Used when detection is off or doesn't find an allowed country." If IP detection is off, or it doesn't find a country you offer, this country is used.

Preferred countries

Preferred countries — "Shown at the top of the dropdown, in this order. At most 5." Pin the countries most of your customers use to the top of the list, in your order.

Privacy: IP detection

Privacy → Detect the visitor's country with ipapi.co. When enabled (the default), this sends the visitor's IP address to ipapi.co to guess their country. When it is off, the fallback country is used and no external request is made. The admin preview never contacts ipapi.co. Full details in Privacy.

WooCommerce section

Phone Box → Countries has a WooCommerce section. Each can be turned off:

  • Validate phone numbers at checkout: check the number on the server before the order is placed.
  • Match the phone country to the billing country: while the phone field is empty, its country follows the billing country.
  • Also apply to the shipping phone: give the shipping phone the same field and checks.

See WooCommerce.