內容簡介
總結:
這個輕量級的外掛會根據使用者的 IP 位址,在 Forminator 的電話欄位中自動設置正確的國家區碼(+44、+49 等)。無需手動選擇,只需安裝、啟用即可!非常適合提升使用者體驗並減少在國際表單上的摩擦。
問題與答案:
1. 這個外掛的特色有哪些?
- 透過 Forminator 內建方法檢測使用者 IP
- 透過 ipapi.co 獲取國家區碼
- 支援選用的 API 金鑰(免費和付費)
- 新增一個管理金鑰的管理者設定頁面
- 由 Huseyin Mardinli 開發並維護
2. 如何使用這個外掛?
- 確保您正在使用 WPMU DEV 的 Forminator 外掛。
- 您的電話欄位設置為國際格式。
- 不要為電話欄位設置默認值。
- 一旦啟用,根據使用者的 IP 位址,電話欄位將自動填入適當的國際區號。
3. 這個外掛連接到哪些外部服務?
- 這個外掛連接到公共 IP 地理位置服務 ipapi.co,以便根據訪客的 IP 位址檢測正確的電話國家區碼。
4. 外掛何時會傳送哪些數據?
- 当 Forminator 電話欄位存在並且自動檢測已啟用時,外掛將在頁面加載時向 https://ipapi.co/{IP}/country_calling_code/ 提出服務器端請求,其中 {IP} 是根據您的網站確定的訪客 IP 位址。
5. 這個外掛的作者是誰?
- 這個外掛是由 Huseyin Mardinli 開發的。
希望這些問題和答案能幫助你了解這個 WordPress 外掛!
外掛標籤
開發者團隊
② 後台搜尋「Phone Country Autodetect for Forminator」→ 直接安裝(推薦)
原文外掛簡介
This lightweight plugin automatically sets the correct country calling code (+44, +49, etc.) in Forminator’s phone field based on the user’s IP address. No manual selection needed — just install, activate, and go!
Perfect for improving user experience and reducing friction on international forms.
Features:
Detects user IP via Forminator’s built-in methods
Calls ipapi.co to determine the country calling code
Supports optional API key (free and paid)
Adds an admin settings page to manage the key
Built and maintained by Huseyin Mardinli
Usage
Make sure:
– You’re using the Forminator plugin by WPMU DEV.
– Your phone field is configured with International Format.
– You do not set a default value for the phone field.
Once active, the phone field will automatically be pre-filled with the appropriate international calling code based on the user’s IP.
External services
This plugin connects to the public IP geolocation service ipapi.co to detect the correct phone country calling code based on the visitor’s IP address. It is required to automatically prefill the Forminator phone field with the appropriate country code.
What data is sent and when
– On page load where the Forminator phone field is present (and only when autodetect is enabled), the plugin makes a server-side request to https://ipapi.co/{IP}/country_calling_code/, where {IP} is the visitor’s IP address determined by your site. This request is used to retrieve the international calling code (e.g., +1, +44).
Provider, Terms, and Privacy
– Service: ipapi.co (Kloudend, Inc)
– Terms of Service: https://ipapi.co/terms/
– Privacy Policy: https://ipapi.co/privacy/
Notes
– The request is performed from your server to ipapi.co, and includes the visitor’s IP address in the URL path. ipapi.co may retain standard web server logs as described in their privacy policy.
– If the external service is unavailable or returns an error, the plugin falls back to leaving the field unchanged (or to your configured default, if set).
Author
Developed by Huseyin Mardinli
GitHub: https://github.com/Housma
💙 Donate: https://www.paypal.com/donate/?hosted_button_id=MDDGA8HUZA4B4
