{"id":162162,"date":"2022-09-15T03:43:23","date_gmt":"2022-09-15T03:43:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/departamentos-y-ciudades-de-colombia-para-contacto-form-7\/"},"modified":"2026-09-02T22:29:32","modified_gmt":"2026-09-02T22:29:32","slug":"departamentos-y-ciudades-de-colombia-para-contact-form-7","status":"publish","type":"plugin","link":"https:\/\/pl.wordpress.org\/plugins\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/","author":9696073,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.1","stable_tag":"1.3.1","tested":"7.1.1","requires":"6.6","requires_php":"7.4","requires_plugins":null,"header_name":"Departamentos y Ciudades de Colombia para Contact Form 7","header_author":"Jupa","header_description":"Este plugin es un addon para Contact Form 7 que permite listar ciudades y departamentos de Colombia. Para listar departamentos usar: [dycccf7_state departamento]. Para listar ciudades usar: [dycccf7_city ciudad].","assets_banners_color":"001995","last_updated":"2026-09-02 22:29:32","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.jupa.co\/","header_plugin_uri":"https:\/\/jupa.co\/wordpress\/contact-form-7\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/","header_author_uri":"https:\/\/www.jupa.co\/","rating":0,"author_block_rating":0,"active_installs":70,"downloads":2361,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"jupa8","date":"2022-09-15 03:42:52","revision":2785003},"1.2.0":{"tag":"1.2.0","author":"jupa8","date":"2024-11-29 04:13:46","revision":3199214},"1.3.0":{"tag":"1.3.0","author":"jupa8","date":"2026-08-24 02:10:23","revision":3662511},"1.3.1":{"tag":"1.3.1","author":"jupa8","date":"2026-09-02 22:29:32","revision":3678741}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2785003,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2785003,"resolution":"256x256","location":"assets","locale":"","width":264,"height":264},"icon.svg":{"filename":"icon.svg","revision":2785003,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2785003,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2785003,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.2.0","1.3.0","1.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2785003,"resolution":"1","location":"assets","locale":"","width":1400,"height":740},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2785003,"resolution":"2","location":"assets","locale":"","width":1400,"height":740}},"screenshots":{"1":"The <code>[dycccf7_state]<\/code> and <code>[dycccf7_city]<\/code> form-tags in the Contact Form 7 editor.","2":"The department and city dropdowns on the front end."}},"plugin_section":[],"plugin_tags":[35402,518,1152,23274],"plugin_category":[],"plugin_contributors":[213770],"plugin_business_model":[],"class_list":["post-162162","plugin","type-plugin","status-publish","hentry","plugin_tags-cities","plugin_tags-colombia","plugin_tags-contact-form-7","plugin_tags-departments","plugin_contributors-jupa8","plugin_committers-jupa8"],"banners":{"banner":"https:\/\/ps.w.org\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/assets\/banner-772x250.png?rev=2785003","banner_2x":"https:\/\/ps.w.org\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/assets\/banner-1544x500.png?rev=2785003","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/assets\/icon.svg?rev=2785003","icon":"https:\/\/ps.w.org\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/assets\/icon.svg?rev=2785003","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/assets\/screenshot-1.png?rev=2785003","caption":"The <code>[dycccf7_state]<\/code> and <code>[dycccf7_city]<\/code> form-tags in the Contact Form 7 editor."},{"src":"https:\/\/ps.w.org\/departamentos-y-ciudades-de-colombia-para-contact-form-7\/assets\/screenshot-2.png?rev=2785003","caption":"The department and city dropdowns on the front end."}],"raw_content":"<!--section=description-->\n<p>This plugin is an addon for Contact Form 7 that lets you list Colombian departments and cities. To list departments use: <code>[dycccf7_state department]<\/code>. To list cities use: <code>[dycccf7_city city]<\/code>. The city field automatically filters its options based on the department selected in the same form.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Two form-tag types: department dropdown and city dropdown.<\/li>\n<li>The city list updates automatically to match the selected department.<\/li>\n<li>Server-side validation confirms the submitted department and city actually belong to the official list, not just that the field isn't empty.<\/li>\n<li>Script and data are only loaded on pages where the form actually uses these fields.<\/li>\n<li>Works correctly with multiple form instances on the same page.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>The plugin can be installed in two ways.<\/p>\n\n<h4>Manual installation<\/h4>\n\n<ol>\n<li>Download and upload the plugin files to the <code>\/wp-content\/plugins\/departamentos-y-ciudades-de-colombia-para-contact-form-7<\/code> directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" screen in WordPress.<\/li>\n<\/ol>\n\n<h4>WordPress interface installation<\/h4>\n\n<ol>\n<li>Open the Plugins screen in your WordPress admin and click \"Add New\".<\/li>\n<li>In the search box, type \"Departamentos y Ciudades de Colombia para CF7\" and press Enter.<\/li>\n<li>Click \"Install\" to install the plugin.<\/li>\n<li>Activate the plugin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20add%20the%20departments%20list%3F\"><h3>How do I add the departments list?<\/h3><\/dt>\n<dd><p>Use the following form-tag in the Contact Form 7 editor: <code>[dycccf7_state department]<\/code><\/p><\/dd>\n<dt id=\"can%20i%20use%20the%20departments%20list%20on%20its%20own%3F\"><h3>Can I use the departments list on its own?<\/h3><\/dt>\n<dd><p>Yes, just use the <code>[dycccf7_state department]<\/code> form-tag.<\/p><\/dd>\n<dt id=\"can%20i%20use%20the%20cities%20list%20on%20its%20own%3F\"><h3>Can I use the cities list on its own?<\/h3><\/dt>\n<dd><p>No, the department form-tag is required for the city field to work.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Fixed: the plugin's text domain now matches its slug, and internal function names use a consistent prefix.<\/li>\n<li>Removed the bundled translation files; translations are now handled entirely through translate.wordpress.org.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Fixed: forms with more than one instance of the department\/city fields no longer collide by sharing the same id; each instance now works independently.<\/li>\n<li>Fixed: the dropdowns now reset correctly when the form reloads or is added dynamically to the page (AJAX submissions, popups, etc.).<\/li>\n<li>Fixed: the <code>id:<\/code> option from the CF7 tag editor is now respected and reflected in the HTML.<\/li>\n<li>Fixed: the city field no longer renders if the form does not also include a department field (previously it stayed permanently disabled and unusable).<\/li>\n<li>Security: added server-side validation so the submitted department and city actually match the official list (previously only checked that the field wasn't empty).<\/li>\n<li>Performance: the script and department\/city data now only load on pages where the form actually uses these fields, instead of on the whole site.<\/li>\n<li>Performance: Colombia's data was centralized into a single JSON file, avoiding duplication between PHP and JavaScript.<\/li>\n<li>Added translation support: the plugin's base language is now English, with Spanish translations included (es_ES and es_CO).<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Code refactor.<\/li>\n<li>Added a check for the required CF7 plugin.<\/li>\n<li>Fixed an error shown when the field is required.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"An addon for Contact Form 7 that lists Colombian departments and cities.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/162162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=162162"}],"author":[{"embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jupa8"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=162162"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=162162"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=162162"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=162162"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=162162"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=162162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}