{"id":240363,"date":"2025-07-12T11:21:53","date_gmt":"2025-07-12T11:21:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/phone-validator-with-flags-for-woocommerce\/"},"modified":"2026-04-04T13:30:40","modified_gmt":"2026-04-04T13:30:40","slug":"phone-validator-with-flags-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/phone-validator-with-flags-for-woocommerce\/","author":22012716,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.0","stable_tag":"1.3.0","tested":"6.9.4","requires":"6.8","requires_php":"7.4","requires_plugins":null,"header_name":"Phone Validator with Flags for WooCommerce","header_author":"Mokhtar Bensaid","header_description":"Adds a country flag and phone validation to the woocommerce checkout phone field.","assets_banners_color":"4aa59c","last_updated":"2026-04-04 13:30:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/mokhtarbensaid.com","rating":5,"author_block_rating":0,"active_installs":700,"downloads":2576,"num_ratings":6,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"mokhtarbsaid","date":"2025-07-12 11:21:35"},"1.1.0":{"tag":"1.1.0","author":"mokhtarbsaid","date":"2025-08-13 17:48:16"},"1.2.0":{"tag":"1.2.0","author":"mokhtarbsaid","date":"2025-08-20 15:30:38"},"1.3.0":{"tag":"1.3.0","author":"mokhtarbsaid","date":"2026-04-04 13:30:40"}},"upgrade_notice":{"1.0.0":"<p>This is the initial stable release.<\/p>","1.1.0":"<p>Fix technical issues<\/p>","1.2.0":"<p>Fix technical issues<\/p>","1.3.0":"<p>Fix compatibility issues<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":6},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3326720,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3326720,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3327557,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3327557,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","1.3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3326716,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Enhanced checkout phone field with country flag.","2":"Dropdown with country flags filtered by Selling Locations.","3":"Alert shown if phone number is invalid before order is placed."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3148,159831,149230,226304,286],"plugin_category":[45],"plugin_contributors":[236985],"plugin_business_model":[],"class_list":["post-240363","plugin","type-plugin","status-publish","hentry","plugin_tags-checkout","plugin_tags-country-flags","plugin_tags-phone-field","plugin_tags-phone-validation","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-mokhtarbsaid","plugin_committers-mokhtarbsaid"],"banners":{"banner":"https:\/\/ps.w.org\/phone-validator-with-flags-for-woocommerce\/assets\/banner-772x250.jpg?rev=3327557","banner_2x":"https:\/\/ps.w.org\/phone-validator-with-flags-for-woocommerce\/assets\/banner-1544x500.jpg?rev=3327557","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/phone-validator-with-flags-for-woocommerce\/assets\/icon-128x128.png?rev=3326720","icon_2x":"https:\/\/ps.w.org\/phone-validator-with-flags-for-woocommerce\/assets\/icon-256x256.png?rev=3326720","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/phone-validator-with-flags-for-woocommerce\/assets\/screenshot-1.png?rev=3326716","caption":"Enhanced checkout phone field with country flag."}],"raw_content":"<!--section=description-->\n<p><strong>Phone Validator with Flags for WooCommerce<\/strong> enhances the billing phone field on the checkout page by:<\/p>\n\n<ul>\n<li>Displaying a dropdown with country flags and dial codes.<\/li>\n<li>Auto-detecting the default country or letting the customer choose.<\/li>\n<li>Validating the phone number format in real-time.<\/li>\n<li>Respecting WooCommerce's \"Selling Locations\" settings to limit the list of countries.<\/li>\n<\/ul>\n\n<p>Ideal for WooCommerce stores targeting international customers who want to ensure clean, valid phone numbers during checkout.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Add country flags and dial codes to the checkout phone field.<\/li>\n<li>Validate phone numbers in real-time before submission.<\/li>\n<li>Supports only countries enabled in WooCommerce \u2192 Selling Locations.<\/li>\n<li>GDPR-safe and does not rely on any external APIs.<\/li>\n<li>Compatible with High-Performance Order Storage (HPOS).<\/li>\n<li>Lightweight and fully self-contained.<\/li>\n<li>Translation-ready.<\/li>\n<\/ul>\n\n<h3>Libraries Used<\/h3>\n\n<p>This plugin includes the following third-party open source library:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/jackocnr\/intl-tel-input\">intl-tel-input<\/a> - JavaScript international phone input utility.\nSource: https:\/\/github.com\/jackocnr\/intl-tel-input\nLicense: MIT<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Ensure that WooCommerce is active and \"Selling Locations\" are configured.<\/li>\n<li>The billing phone field on the checkout page will now display with country flag + validation.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20send%20data%20to%20third-party%20services%3F\"><h3>Does this plugin send data to third-party services?<\/h3><\/dt>\n<dd><p>No. All assets and logic are fully self-hosted. No external scripts, APIs, or CDNs are used.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20work%20with%20custom%20phone%20fields%3F\"><h3>Does this plugin work with custom phone fields?<\/h3><\/dt>\n<dd><p>Currently, it only targets the default WooCommerce <code>billing_phone<\/code> field at checkout.<\/p><\/dd>\n<dt id=\"what%20if%20the%20user%20enters%20an%20invalid%20phone%20number%3F\"><h3>What if the user enters an invalid phone number?<\/h3><\/dt>\n<dd><p>An alert will appear, and the order will not be submitted until a valid phone number is entered.<\/p><\/dd>\n<dt id=\"does%20it%20support%20hpos%3F\"><h3>Does it support HPOS?<\/h3><\/dt>\n<dd><p>Yes. This plugin officially declares compatibility with WooCommerce High-Performance Order Storage.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release with flag selector, validation, and WooCommerce integration.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Fix some technical issues about the error alert<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Fix some technical issues<\/li>\n<\/ul>","raw_excerpt":"Adds a country flag and phone validation to the checkout phone field.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/240363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=240363"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mokhtarbsaid"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=240363"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=240363"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=240363"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=240363"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=240363"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=240363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}