{"id":371379,"date":"2026-09-22T06:24:17","date_gmt":"2026-09-22T06:24:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/country-select-phone-code-for-cf7\/"},"modified":"2026-09-22T06:24:01","modified_gmt":"2026-09-22T06:24:01","slug":"country-select-phone-code-for-cf7","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/country-select-phone-code-for-cf7\/","author":23569116,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"7.1.1","requires":"5.2","requires_php":"7.2","requires_plugins":null,"header_name":"Country Select & Phone Code for CF7","header_author":"Bharanidharan M","header_description":"Add country selection and telephone dial codes with flags to Contact Form 7 forms. Supports country search, country-code selection, and phone number validation.","assets_banners_color":"","last_updated":"2026-09-22 06:24:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/github.com\/bharanidharan70","rating":0,"author_block_rating":0,"active_installs":0,"downloads":24,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"bharanidharan70","date":"2026-09-22 06:24:01","revision":3706693}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Front-End Country Dropdown Field: Searchable country selector with vector SVG country flags and country dial codes.","2":"Front-End Phone Field with Dial Code Selector: Telephone input with country flag selector, instant search, and real-time numeric restriction.","3":"Contact Form 7 Form Editor Integration: Insert fields with one click using dedicated \"Country Phone\" and \"Country Select\" tag buttons.","4":"Country Field Settings Panel: Customize default country, preferred countries, exclusions, and Two-Way Field Synchronization.","5":"Phone Field Settings Panel: Set separate default country for phone field, enforce Numbers-Only typing, and automatic dial code email merging."}},"plugin_section":[],"plugin_tags":[1152,3751,281960,3736,2644],"plugin_category":[],"plugin_contributors":[281961],"plugin_business_model":[],"class_list":["post-371379","plugin","type-plugin","status-publish","hentry","plugin_tags-contact-form-7","plugin_tags-country","plugin_tags-dial-code","plugin_tags-flags","plugin_tags-phone","plugin_contributors-bharanidharan70","plugin_committers-bharanidharan70"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/country-select-phone-code-for-cf7.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Country Select &amp; Phone Code for CF7<\/strong> is a WordPress plugin developed by <strong>Bharanidharan M<\/strong>. It provides a country selector and international dialing code input for Contact Form 7 forms.<\/p>\n\n<p>This plugin provides interactive vector country flags, telephone dial code prefixing, live search filtering, and two-way synchronization directly within Contact Form 7.<\/p>\n\n<p>All country flags are stored locally within the plugin as vector SVGs. Zero external CDN or network requests are made, ensuring fast page load times and GDPR compliance.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li><strong>Vector SVG Flags<\/strong>: Crisp vector flag icons rendered smoothly across displays without external dependencies.<\/li>\n<li><strong>Two-Way Field Synchronization<\/strong>: Selecting a country in the Country dropdown automatically updates the Phone field flag and dialing prefix. Selecting a country in the Phone input synchronizes the Country field instantly.<\/li>\n<li><strong>Strict Numbers-Only Phone Validation<\/strong>: Enforces digits-only input by blocking alphabets and invalid characters in real-time on keystroke and sanitizing pasted clipboard text.<\/li>\n<li><strong>Automatic Dial Code Merging in Emails<\/strong>: Form submissions automatically prepend the selected country dial prefix (e.g. <code>+91 9876543210<\/code>) to the phone number in your Contact Form 7 email notification.<\/li>\n<li><strong>Dedicated Admin Settings Panel<\/strong>: Configure default countries, preferred countries, country exclusions, and validation settings easily under <strong>Contact &gt; Country &amp; Phone Settings<\/strong>.<\/li>\n<li><strong>Independent Default Country Controls<\/strong>: Set independent default countries for the Country dropdown and the Phone input to match your regional traffic needs.<\/li>\n<li><strong>Preferred Countries Prioritization<\/strong>: Pin your most frequent customer countries (e.g. India, USA, UK, Saudi Arabia, Australia) at the top of the dropdown list for instant access.<\/li>\n<li><strong>Instant Live Search<\/strong>: Type-ahead search enables visitors to locate any country quickly by country name, ISO-2 code, or dialing code.<\/li>\n<li><strong>Theme-Agnostic Design<\/strong>: Harmonizes with your existing WordPress theme inputs with standard borders and smooth dropdown transitions.<\/li>\n<li><strong>100% Local &amp; Privacy Compliant<\/strong>: All flags and assets are bundled locally with zero external CDN dependencies, ensuring fast performance and GDPR compliance.<\/li>\n<\/ul>\n\n<h3>Configuration<\/h3>\n\n<h4>1. Add Fields to Your Form<\/h4>\n\n<ol>\n<li>Navigate to <strong>Contact &gt; Contact Forms<\/strong> and edit your form.<\/li>\n<li>Use the dedicated <strong>Country Phone<\/strong> or <strong>Country Select<\/strong> tag generator buttons in the editor toolbar, or insert tags manually:\n\n<ul>\n<li>Country dropdown: <code>[country_select* your-country]<\/code><\/li>\n<li>Phone input: <code>[country_tel* your-phone placeholder \"Enter your phone number\"]<\/code><\/li>\n<\/ul><\/li>\n<li>Save your form template.<\/li>\n<\/ol>\n\n<h4>2. Configure Email Notification<\/h4>\n\n<p>In your Contact Form 7 <strong>Mail<\/strong> tab, insert the corresponding mail-tags into your email notification template:\n* Custom tag names:\n      Country: [your-country]\n      Phone: [your-phone]\n* Tag generator auto-generated names:\n      Country: [country_select-123]\n      Phone: [country_tel-456]\n* Standalone dial code (optional):\n      Dial Code: [country_code] or <code>[your-phone_country_code]<\/code><\/p>\n\n<h4>3. Customize Plugin Settings<\/h4>\n\n<p>Open <strong>Contact &gt; Country &amp; Phone Settings<\/strong> to customize:\n* Default country for Country selector and Phone input independently.\n* Preferred priority countries pinned at the top of the dropdown.\n* Exclude specific countries.\n* Two-Way Field Synchronization toggle.\n* Numbers-only phone validation toggle.\n* Automatic dial code email merging toggle.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Log into your WordPress admin dashboard.<\/li>\n<li>Navigate to <strong>Plugins &gt; Add New<\/strong> and search for <strong>Country Select &amp; Phone Code for CF7<\/strong> (or click <strong>Upload Plugin<\/strong> and select the ZIP file).<\/li>\n<li>Click <strong>Install Now<\/strong> and activate the plugin.<\/li>\n<li>Ensure the companion plugin <strong>Contact Form 7<\/strong> is installed and activated.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20require%20contact%20form%207%3F\"><h3>Does this plugin require Contact Form 7?<\/h3><\/dt>\n<dd><p>Yes. This plugin is an extension for Contact Form 7. You must have Contact Form 7 (v5.0 or higher) installed and activated.<\/p><\/dd>\n<dt id=\"how%20do%20i%20add%20the%20country%20dropdown%20to%20my%20form%3F\"><h3>How do I add the country dropdown to my form?<\/h3><\/dt>\n<dd><p>Simply add the tag <code>[country_select* your-country]<\/code> inside your form template, or click the \"Country Select\" button above the CF7 form editor to configure and insert the tag automatically.<\/p><\/dd>\n<dt id=\"how%20does%20two-way%20field%20synchronization%20work%3F\"><h3>How does Two-Way Field Synchronization work?<\/h3><\/dt>\n<dd><p>When enabled in admin settings, choosing a country in the Country dropdown will automatically change the country flag and dial code in the Phone input. Conversely, changing the phone flag will automatically synchronize the Country dropdown selection.<\/p><\/dd>\n<dt id=\"can%20i%20enforce%20numbers-only%20phone%20input%3F\"><h3>Can I enforce Numbers-Only phone input?<\/h3><\/dt>\n<dd><p>Yes. Under <strong>Contact &gt; Country &amp; Phone Settings &gt; Phone Field Settings<\/strong>, enable <strong>Numbers-Only Restriction<\/strong>. This instantly prevents visitors from typing alphabets or invalid symbols into the phone field and sanitizes pasted phone numbers.<\/p><\/dd>\n<dt id=\"how%20do%20the%20country%20and%20phone%20number%20appear%20in%20submitted%20emails%3F\"><h3>How do the country and phone number appear in submitted emails?<\/h3><\/dt>\n<dd><p>In your Contact Form 7 Mail tab, place <code>Country: [your-country]<\/code> and <code>Phone: [your-phone]<\/code> (or match your exact generated tag names like <code>[country_select-123]<\/code> and <code>[country_tel-456]<\/code>). The email will arrive with the full country name (e.g. India) and the telephone number formatted with the country dialing prefix (e.g. <code>+91 9876543210<\/code>). You can also use <code>[country_code]<\/code> to output just the dialing code separately.<\/p><\/dd>\n<dt id=\"can%20i%20set%20different%20default%20countries%20for%20country%20and%20phone%20fields%3F\"><h3>Can I set different default countries for Country and Phone fields?<\/h3><\/dt>\n<dd><p>Yes. You can specify one default country under \"Country Field Settings\" and a completely independent default country under \"Phone Field Settings\".<\/p><\/dd>\n<dt id=\"how%20do%20i%20pin%20popular%20countries%20to%20the%20top%20of%20the%20dropdown%3F\"><h3>How do I pin popular countries to the top of the dropdown?<\/h3><\/dt>\n<dd><p>In the Country Field Settings tab, enter your desired 2-letter ISO codes in the \"Preferred Countries\" input (e.g. <code>in, us, gb, sa, au<\/code>). Those countries will appear at the very top of the list for quick selection.<\/p><\/dd>\n<dt id=\"are%20flag%20icons%20loaded%20from%20an%20external%20cdn%3F\"><h3>Are flag icons loaded from an external CDN?<\/h3><\/dt>\n<dd><p>No. All 230+ country flags are bundled locally within the plugin as clean vector SVGs. No third-party network requests are made, ensuring fast load times and complete GDPR compliance.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Removed WordPress.org directory screenshot assets from plugin ZIP package per review guidelines.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Resolved issues reported by WordPress.org Plugin Review Team.<\/li>\n<li>Added 'Requires Plugins: contact-form-7' header dependency.<\/li>\n<li>Enqueued admin styles via WordPress enqueue API and removed direct inline style output.<\/li>\n<li>Standardized translation text-domain to 'country-select-phone-code-for-cf7' across all tag generator templates.<\/li>\n<li>Removed custom update checker and plugins_api interceptor to rely exclusively on WordPress.org repository updates.<\/li>\n<li>Removed invalid 404 Plugin URI header.<\/li>\n<li>Removed load_plugin_textdomain call in accordance with WordPress.org guidelines.<\/li>\n<li>Updated documentation and descriptions to factual specifications.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial stable release.<\/li>\n<li>230+ local high-definition vector SVG flags bundled with zero external CDN dependencies.<\/li>\n<li>Interactive searchable country dropdown tag: <code>[country_select]<\/code>.<\/li>\n<li>International phone number input with country flag selector: <code>[country_tel]<\/code>.<\/li>\n<li>Intelligent two-way field synchronization between country and telephone fields.<\/li>\n<li>Real-time numbers-only keystroke and clipboard paste restriction.<\/li>\n<li>Automatic dial code email prefix merging (<code>+91 9876543210<\/code>).<\/li>\n<li>Independent default country selection for Country dropdown and Phone input.<\/li>\n<li>Dedicated multi-tab admin settings panel under Contact &gt; Country &amp; Phone Settings.<\/li>\n<li>Built-in CF7 tag generators: \"Country Phone\" and \"Country Select\".<\/li>\n<li>Full translation readiness with gettext translation template.<\/li>\n<\/ul>","raw_excerpt":"Add country selection and telephone dial codes with flags to Contact Form 7 forms. Supports country search, country-code selection, and phone number v &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/371379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=371379"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bharanidharan70"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=371379"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=371379"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=371379"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=371379"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=371379"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=371379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}