跳到内容

Phone Validator with Flags for WooCommerce

v2.0.0

Mokhtar Bensaid · 2025年7月12日 上架

Adds a country flag and phone validation to the WooCommerce checkout phone field. Supports Classic and Block Checkout.

正在使用
1,000+
评分
5.0 / 5
累计下载
6,129
最近更新
2026年5月25日
9 条评价需要 WordPress 6.8+已测试到 6.9.12PHP 7.4+

截图

Enhanced checkout phone field with country flag and dial code.
Enhanced checkout phone field with country flag and dial code.
Enhanced Account addresses phone field with country flag and dial code.
Enhanced Account addresses phone field with country flag and dial code.
Plugin settings page part 1 under WooCommerce → Settings → Phone Validator .
Plugin settings page part 1 under WooCommerce → Settings → Phone Validator .
Plugin settings page part 2 under WooCommerce → Settings → Phone Validator.
Plugin settings page part 2 under WooCommerce → Settings → Phone Validator.

Phone Validator with Flags for WooCommerce enhances the billing phone field on the checkout page by:

  • Displaying a dropdown with country flags and dial codes.
  • Auto-detecting the default country based on your WooCommerce store location.
  • Validating the phone number format before order submission.
  • Respecting WooCommerce’s “Selling Locations” settings to limit the list of countries.
  • Supporting both Classic Checkout and Block Checkout (introduced in WooCommerce 8+).
  • Allowing full customization via a dedicated settings page under WooCommerce Settings Phone Validator.
  • Supporting the shipping phone field independently from the billing phone field.

Ideal for WooCommerce stores targeting international customers who want to ensure clean, valid phone numbers during checkout.

Have a question or need help? Contact the developer.

Features

  • Add country flags and dial codes to the checkout phone field.
  • Validate phone numbers in real-time before submission.
  • Full support for WooCommerce Block Checkout (Gutenberg).
  • Supports billing phone, shipping phone, and My Account phone fields independently.
  • Set preferred countries to appear at the top of the dropdown with a visual divider.
  • Choose between all countries or only WooCommerce Selling Locations.
  • Shipping phone field uses WooCommerce Shipping Locations automatically.
  • Inline error messages styled to match WooCommerce notices.
  • Respects WooCommerce field validation rules automatically.
  • Compatible with WordPress 7 and WooCommerce 10+.
  • GDPR-safe – no external APIs, fully self-hosted.
  • Compatible with High-Performance Order Storage (HPOS).
  • Lightweight and translation-ready.

Libraries Used

This plugin includes the following third-party open source library:

  • intl-tel-input v29.0.1 – JavaScript international phone input utility.
    Source: https://github.com/jackocnr/intl-tel-input
    License: MIT

Plums

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

导航

说明

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

© 2026 Plums