Linux 软件免费装

Alharthiweb Phone Country Code

开发者 moayyedalharthi
更新时间 2026年10月29日 03:28
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPL-3.0-only
版权网址: 版权信息

标签

checkout phone country code international phone calling code

下载

1.8.7

详情介绍:

Alharthiweb Phone Country Code adds a searchable country selector beside ordinary telephone fields. Free automatically discovers type="tel", autocomplete="tel", and common phone names such as phone, mobile and customer_phone. WooCommerce Classic Checkout uses billing_phone; customer_phone is a general form convention, not a WooCommerce standard. Choose favorite countries, set a fallback, or paste an international number. Arabic and Persian digits and the 00 international prefix are accepted. An international prefix takes priority over the billing address. Automatic suggestions never change the country after typing starts or after a manual choice. The plugin uses English by default, including on an Arabic site; the site translation is an explicit option. It does not change the site language or rewrite saved orders. Free includes country names, flags, calling codes, search, favorites, safe input normalization, keyboard controls, and optional disclosed IP country suggestion. It does not perform detailed number validation. Pro functionality is distributed separately from this Free package: local metadata validation with matching server checks for Classic Checkout billing_phone, optional mobile-only checks, additional field selectors, and custom plain-text messages. Other forms receive browser validation only. Pro availability and licensing are being prepared. Checkout Blocks and Store API are not supported in this version. Format validity does not prove that a phone exists, belongs to a visitor, or can receive SMS. No OTP or SMS service is provided. External services and privacy No external service is required. Phone processing and country data are local. Automatic country suggestion stays off until an administrator explicitly chooses Enable with FreeIPAPI and saves. The free endpoint needs no account, API key or subscription and permits commercial use under its current terms. For an empty phone field without a known country, the browser makes at most one request per page to https://free.freeipapi.com/api/v1/json/ . The service receives the visitor IP address, website origin and normal connection metadata, never phone numbers, order details, names or emails. The plugin sends no credentials or referrer, uses only the countryCode mapped to local calling codes, and does not save the IP or response. FreeIPAPI may keep request logs. See https://freeipapi.com/privacy and https://freeipapi.com/terms . The free service allows 10 requests per 10 seconds and 60 per minute, shared by domain and source IP, not per visitor; see https://freeipapi.com/rate-limit . Accuracy and availability are not guaranteed. After five seconds, an error or a rate limit, the current country stays usable; there is no retry or alternate provider. VPN results may reflect the network exit country. Add the service to your privacy notice and obtain visitor consent where required before enabling requests. A site integration can return false from the alhwpc_allow_country_suggestion filter to suppress requests for a visitor. The settings preview never contacts the provider. The plugin stores configuration only. WooCommerce or the containing form controls phone storage. No external phone-validation request is included. Optional Freemius account and usage sharing is described separately below. Source and licenses First-party source is GPL-3.0-or-later. Country data derives from intl-tel-input 29.5.5 (MIT), https://github.com/jackocnr/intl-tel-input/tree/v29.5.5 . Its notice is included under licenses/. Editable frontend source, country data and readable classic bundles are included. The deterministic bundle recipe is described in SOURCE.txt.

安装:

  1. Install and activate the ZIP through Plugins > Add New > Upload Plugin.
  2. Open Settings > Phone Country Code and try a number in the preview.
  3. Open a normal phone form or Classic Checkout. Defaults work immediately.
When replacing QBF Phone Country Selector, deactivate the old plugin first. Saved legacy settings are retained; historical order numbers are untouched. Do not activate two editions together.

屏幕截图:

  • Simple settings and an immediate local preview.

升级注意事项:

1.8.7 Packaging cleanup only. Existing settings and phone behavior are unchanged. 1.8.5
  • Preserve native and shared SDK update callbacks using the product-scoped Free update boundary.
  • Pin the Phone commerce adapter independently from other products.
1.8.4 Improves English text direction on RTL sites and keeps country codes readable while flags load. Existing settings, numbers and service consent are preserved. 1.8.3 Country suggestion now uses FreeIPAPI. In Settings > Phone Country Code, review the disclosure, choose Enable with FreeIPAPI, and save. No IP is shared before approval. Existing numbers and settings are preserved. 1.8.0 Deactivate the legacy QBF plugin before activating this replacement. Existing settings are retained; no historical order phone numbers are rewritten.

常见问题:

Does this require WooCommerce?

No. Ordinary telephone fields can use the country selector without WooCommerce. Server normalization is specifically integrated with WooCommerce Classic Checkout billing_phone.

How are custom fields discovered?

Free recognizes common phone/mobile field names, type="tel", autocomplete="tel", and clear phone labels. It excludes search, fax, hidden, disabled, readonly and name fields. Pro also accepts a plain field name, #id, .class or up to three simple selectors. Its settings preview counts eligible inputs on that settings page only, without reading values. Custom field enhancement does not add another form provider server validation or storage support. Existing forms are observed in bounded form subtrees; startup rescans stop after 30 seconds. Forms inserted later can be discovered on focus, WooCommerce updated_checkout, or the existing QBFPhoneSelector.refresh() API. No document-wide DOM observer is used.

Does it validate Checkout Blocks?

No. Blocks and Store API validation are outside this version's support. Additional CSS selectors do not add native Blocks support.

What happens to an international number?

A leading + or 00 is respected. A billing country or late IP response cannot replace it. A deliberate manual country change can replace its calling code.

Are mixed mobile and landline ranges rejected?

Pro accepts ranges that metadata cannot distinguish. Mobile-only does not promise SMS capability.

Does Free reformat every national phone pattern?

Free preserves some complex national formats in Argentina, Brazil, and Belarus, plus five-digit local forms in Norfolk Island, rather than guessing. Use an explicit international number for predictable formatting. Pro uses detailed local metadata for supported number patterns.

Does uninstall delete settings?

No. Configuration is retained so reinstalling or changing editions does not erase preferences. No historical order data is modified.

更新日志:

1.8.7 1.8.6 1.8.5 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0