International Telephone Box
International phone field with country flags, dial codes and real validation, for WooCommerce checkout and any form.
Install in
International Telephone Box is a WordPress plugin that provides a robust solution for handling international telephone numbers in your WordPress website. The plugin automatically enhances every input[type="tel"] on the site, including fields added dynamically by form builders and fields in Elementor popups. It includes:
- Separate dial code
- Validation on blur and on submit
- E.164 formatting on blur
- A hidden
full_phonefield - IP-based country preselection
- No jQuery requirement
- Bundled assets only (no remote CDN JavaScript, CSS or fonts)
- Mobile-friendly interface
- Customizable appearance with custom CSS
Shortcode
Use [intelebox_input] to add a standalone phone field to any page or post. Example:
[intelebox_input name="mobile" id="mobile" placeholder="Enter phone number" class="my-phone-field" required="true"]
Attributes:
name– thenameattribute of the input, used when the form is submitted. Defaultphone.id– theidattribute of the input. Default empty; noidattribute is output.placeholder– the placeholder text. DefaultEnter phone number.class– extra CSS class(es) added to the container. Default empty.required– output the HTMLrequiredattribute when set totrue,1oryes(case-insensitive). Default off.
Included Libraries
This plugin includes the following libraries:
- intl-tel-input (v29.5.12) – MIT License
- Source: https://github.com/jackocnr/intl-tel-input
- Unminified source: https://github.com/jackocnr/intl-tel-input/tree/v29.5.12/packages/core/src
- Copyright (c) 2014-2016 Jack O’Connor
- Bundled files: public/js/intlTelInputWithUtils.min.js, public/css/intlTelInput.css, public/img/flags.webp, public/img/flags-2x.webp (renamed from flags@2x.webp)
The plugin no longer requires jQuery. If your site already loads jQuery (as Elementor does), it is used only to listen for Elementor popups opening.
External Services
This plugin connects to the following external service:
- IPAPI – Used to automatically detect the user’s country based on IP address to preselect the country code field.
- What is sent: The plugin sends a request to
https://ipapi.co/jsonto retrieve the user’s country and location data (IP-based). - No personally identifiable data is stored or logged.
- Terms: https://ipapi.co/terms/
- Privacy: https://ipapi.co/privacy/
- What is sent: The plugin sends a request to
Written by Joobi from the project's own listing. See the source page
1.4.0
- New: WooCommerce integration for the classic checkout, the Checkout block and My Account Addresses. Phone numbers are validated on the server and saved on orders in E.164.
- New: the phone country follows the billing country while the phone field is empty.
- New: WooCommerce section in the settings page.
- New: server-side validation with libphonenumber (needs PHP 8.1+; older PHP keeps browser-only validation). Numbers starting with 00 and Arabic-Indic digits are understood.
- New: right-to-left sites show country names in the site language. The country box stays on the left by default; a setting moves it to the right.
- Fixed: the WooCommerce Checkout block always reported “Please enter a valid phone” because the number never reached the checkout.
- Fixed: with Gravity Forms AJAX forms, a second, broken flag appeared above the phone field.
- Fixed: phone fields that fill their row no longer get narrower, and the Checkout block’s label no longer covers the country box.
- Fixed: the plugin no longer restyles or re-initialises phone fields that another plugin already enhances.
1.3.1
- Fixed: country flags were missing on the settings page on high-resolution (retina) screens.
1.3.0
- New: Settings International Telephone Box settings page. Choose which countries are offered (all / only selected / all except selected), the default and fallback country, up to five preferred countries, and whether to detect the visitor’s country with ipapi.co. Includes a live preview, follows the admin design system, works without JavaScript, and resets to defaults. With no settings saved, the field behaves exactly as in 1.2.0.
- New:
Intelebox_Settingsclass; a singleintelebox_settingsoption sanitized on save and re-validated on read. - New:
uninstall.phpremoves theintelebox_settingsoption on uninstall (single site and multisite). - Bundled the Schibsted Grotesk and JetBrains Mono fonts (SIL OFL 1.1) for the settings page.
- The IP-based country detection can be turned off in settings.
1.2.0
- Fixed: the
[intelebox_input]field now has aname, so the number is submitted with the form. - New:
name,idandrequiredshortcode attributes. - Updated the bundled intl-tel-input library from v17.0.19 to v29.5.12 (newer phone number metadata, accessibility and country search improvements).
- Adapted the plugin to the new library API. Validation, country selection, formatting, geolocation and the
full_phonehidden field keep working as before. - jQuery is no longer required.
- Flags now use WebP images and display sharply on high-resolution screens.
- Fixed the
[intelebox_input]shortcode field styles, which no longer matched the field’s class names. - Fixed theme button styles leaking into the country selector.
- Removed an unused legacy file.
- Tested with WordPress 7.1.
1.1.5
- Updated the country list.
1.1.4
- Fix showing popups.
1.1.3
- Fixed a global issue.
1.1.2
- Improved design and layout.
1.1.1
- Removed all external JS/CSS dependencies
1.1.0
- Fixed bugs
1.0.0
- Initial release
1.3.1
- Fixed: country flags were missing on the settings page on high-resolution (retina) screens.
1.3.0
- New: Settings International Telephone Box settings page. Choose which countries are offered (all / only selected / all except selected), the default and fallback country, up to five preferred countries, and whether to detect the visitor’s country with ipapi.co. Includes a live preview, follows the admin design system, works without JavaScript, and resets to defaults. With no settings saved, the field behaves exactly as in 1.2.0.
- New:
Intelebox_Settingsclass; a singleintelebox_settingsoption sanitized on save and re-validated on read. - New:
uninstall.phpremoves theintelebox_settingsoption on uninstall (single site and multisite). - Bundled the Schibsted Grotesk and JetBrains Mono fonts (SIL OFL 1.1) for the settings page.
- The IP-based country detection can be turned off in settings.
1.2.0
- Fixed: the
[intelebox_input]field now has aname, so the number is submitted with the form. - New:
name,idandrequiredshortcode attributes. - Updated the bundled intl-tel-input library from v17.0.19 to v29.5.12 (newer phone number metadata, accessibility and country search improvements).
- Adapted the plugin to the new library API. Validation, country selection, formatting, geolocation and the
full_phonehidden field keep working as before. - jQuery is no longer required.
- Flags now use WebP images and display sharply on high-resolution screens.
- Fixed the
[intelebox_input]shortcode field styles, which no longer matched the field’s class names. - Fixed theme button styles leaking into the country selector.
- Removed an unused legacy file.
- Tested with WordPress 7.1.
1.1.5
- Updated the country list.
1.1.4
- Fix showing popups.
1.1.3
- Fixed a global issue.
1.1.2
- Improved design and layout.
1.1.1
- Removed all external JS/CSS dependencies
1.1.0
- Fixed bugs
1.0.0
- Initial release
1.2.0
- Fixed: the
[intelebox_input]field now has aname, so the number is submitted with the form. - New:
name,idandrequiredshortcode attributes. - Updated the bundled intl-tel-input library from v17.0.19 to v29.5.12 (newer phone number metadata, accessibility and country search improvements).
- Adapted the plugin to the new library API. Validation, country selection, formatting, geolocation and the
full_phonehidden field keep working as before. - jQuery is no longer required.
- Flags now use WebP images and display sharply on high-resolution screens.
- Fixed the
[intelebox_input]shortcode field styles, which no longer matched the field’s class names. - Fixed theme button styles leaking into the country selector.
- Removed an unused legacy file.
- Tested with WordPress 7.1.
1.1.5
- Updated the country list.
1.1.4
- Fix showing popups.
1.1.3
- Fixed a global issue.
1.1.2
- Improved design and layout.
1.1.1
- Removed all external JS/CSS dependencies
1.1.0
- Fixed bugs
1.0.0
- Initial release
Follow this listing's changes (Atom feed)