| 开发者 | morkizdigital |
|---|---|
| 更新时间 | 2026年5月18日 04:08 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
.po/.mo file.handleSubmit or setTimeout. It keeps the input's E.164 value fresh and lets Elementor's native submit handler run untouched.intl-tel-input validation.elementor_pro/forms/validation/tel.55… → 5555…) | We detect E.164 on init and use setNumber() |
| Flags all look the same after installing WP-Rocket / LiteSpeed | Inline SVG per country — nothing to strip |
| Validation error texts not translatable with WPML | Error strings registered with WPML String Translation + Polylang |
| Country list language can't match site language | Locale resolved from WPML/Polylang/WP locale on the server |
| Preferred countries / auto-detect paywalled | Both included |
/wp-content/plugins/.Install and activate this plugin (it requires Elementor Pro for the Form widget). Open the form in the Elementor editor, edit the Tel field, and toggle Country Code → Show in the field settings. The dropdown, flags, and per-country validation are enabled with a single click — no extra widgets to add and no configuration required to get started.
No. The Tel field that ships with the Elementor Pro Form widget accepts free-text phone numbers and does not include a country selector, dial code, or per-country validation. This plugin adds those features to the existing Tel field rather than replacing it with a separate widget, so any form you've already built keeps working — you just toggle one setting per Tel field.
Enable Strict Validation in the Tel field settings. Submissions are blocked client-side when the number does not match the selected country's pattern (for example, a US number with only 8 digits is rejected). An always-on server-side sanity check (digit count and allowed characters) also runs on the elementor_pro/forms/validation/tel action, so the rule cannot be bypassed by disabling JavaScript.
No. The Form widget is an Elementor Pro feature, so Elementor Pro is required for this plugin to work.
Yes. The country-list locale is resolved from WPML's ICL_LANGUAGE_CODE or Polylang's pll_current_language() when available, and all validation error strings are registered with WPML String Translation and Polylang's string registry so they appear in their respective translation UIs.
The full E.164 number, e.g. +919876543210. The input is kept in sync on every keystroke and just before submit, so the value Elementor receives is already in international format.
No. The country list, flags, and validation library are all bundled locally. Auto-detect uses the browser's navigator.language, not an IP lookup — which makes the plugin GDPR-friendly out of the box.
Three options:
.po/.mo file in /languages/ using Loco Translate or POEdit.pfcc_error_messages filter:
add_filter( 'pfcc_error_messages', function( $msgs ) { $msgs[2] = 'Zu kurz.'; return $msgs; } );Error messages: yes. Country names: English by default in 1.0. You can provide an i18n object at window.intlTelInputI18n_PFCC via a custom snippet to localise them. Bundled i18n packs are planned for 1.1.
Yes — each field is initialised independently.
Yes. The dropdown z-index is set to sit above popup backdrops.
pfcc_default_country — override the default country ISO-2 per field at render time.pfcc_preferred_countries — filter the top-of-list country order (array or CSV).pfcc_only_countries and pfcc_exclude_countries — dynamically whitelist / blacklist the dropdown.pfcc_validation_enabled — globally disable the server-side sanity check (for users bringing their own validator via libphonenumber-php).pfcc_validation_regex — override the allowed-characters regex used during server-side shape validation.pfcc_validation_min_digits and pfcc_validation_max_digits — tighten or relax the digit-count bounds (defaults 4 and 15).pfcc_error_messages and pfcc_locale continue to work as before..iti__flag node directly and applies per-country inline SVGs with !important, so every flag in the dropdown matches its country.pattern="[0-9()#&+*-=.]+" attribute emitted by Elementor Pro's Tel field is now removed on init — eliminates the browser-level SyntaxError thrown by engines that evaluate patterns under the RegExp v flag..iti__flag { background-image: none !important; }) — inline per-country SVGs survive WP-Rocket "Remove Unused CSS" and LiteSpeed CSS minification.intlTelInputUtils.js — loadUtils is unset; client-side validation uses a digit-count fallback and the server-side check on elementor_pro/forms/validation/tel is authoritative.elementor_pro/forms/validation/tel.