Documentation
FAQ: International Telephone Box
Answers to common questions: country codes on WordPress phone fields, WooCommerce validation, the Checkout block, Arabic sites, privacy and price.
Last updated
View as MarkdownHow do I add a country code dropdown to a WordPress phone field?
Install and activate International Telephone Box. Every phone field (input[type="tel"]) on your site gets a country dropdown with flags and dial codes automatically, with no setup. To add a phone field to a page yourself, use the [intelebox_input] shortcode.
How do I validate phone numbers in WooCommerce checkout?
Install International Telephone Box. It validates the phone number on the classic checkout, the Checkout block and My Account, first in the browser and then on the server with libphonenumber, and an invalid number stops the order with a clear message. Server validation needs PHP 8.1+.
Does it work with the WooCommerce Checkout block?
Yes. The number is synced to the Checkout block, an invalid number shows the block's own error under the field, and the order is validated again on the server before payment (WooCommerce 9.9+).
Can I show only the flag?
Yes. On Phone Box → Appearance, set Display to Flag only. You can also show the dial code only, or both, and put the country box on the left or the right.
Does it support Arabic sites?
Yes. On Arabic and other right-to-left sites, country names follow the site language and the number always reads left to right. The country box stays on the left by default, and you can move it right on Phone Box → Appearance.
Is it free?
Yes. International Telephone Box is free and open source, licensed GPLv2 or later, and you can download it from WordPress.org.
Does it send visitor data anywhere?
Only if you keep IP detection on. To preselect the visitor's country, the plugin can ask ipapi.co, which receives the visitor's IP address. Turn it off on Phone Box → Countries and no external request is made. All CSS, JavaScript and flags are bundled with the plugin.
Does it work with Contact Form 7, Gravity Forms, WPForms and Elementor?
Yes. Any form plugin's phone (tel) field is enhanced, including Contact Form 7, Gravity Forms, WPForms, Formidable, Fluent Forms and Elementor forms. If another plugin already adds its own international phone library to a field, that field is left alone.
Can I limit which countries are available?
Yes. On Phone Box → Countries, choose Only selected to offer a chosen set of countries, or All except selected to remove some. You can also set a default and fallback country and up to 5 preferred countries at the top.
How do I get the full international number?
When the visitor leaves the field, its value becomes an E.164 number, like +201012345678. The plugin also adds a hidden full_phone field with the full international number.
How do I make the phone field required in WooCommerce?
WooCommerce controls that. For the Checkout block, edit the Checkout page, select the Checkout block and set Phone to Required. For the classic checkout, go to Appearance → Customize → WooCommerce → Checkout.
Which PHP version do I need?
PHP 7.4 or newer. Server-side validation needs PHP 8.1+; on older PHP the plugin keeps working with browser validation only.