
Phone Validator with Flags for WooCommerce
v2.0.0Mokhtar 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+
贡献者
截图
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



