跳到内容

Phone Country Autodetect for Forminator

v1.0.1

Huseyin Mardinli · 2025年8月15日 上架

Automatically detects the user's country and pre-fills Forminator's phone field with the correct international calling code. Uses ipapi.

正在使用
70+
评分
暂无
累计下载
994
最近更新
2025年8月15日
需要 WordPress 5.0+已测试到 6.8.13PHP 7.2+

截图

Plugin settings page with API key field and setup warnings.
Plugin settings page with API key field and setup warnings.

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums