{"id":31859,"date":"2014-09-20T08:09:38","date_gmt":"2014-09-20T08:09:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/portugal-states-distritos-for-woocommerce\/"},"modified":"2026-04-12T11:29:15","modified_gmt":"2026-04-12T11:29:15","slug":"portugal-states-distritos-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/kk.wordpress.org\/plugins\/portugal-states-distritos-for-woocommerce\/","author":23274606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"5.2","stable_tag":"5.2","tested":"7.0","requires":"5.8","requires_php":"7.2","requires_plugins":null,"header_name":"Portugal States (Distritos) for WooCommerce","header_author":"Naked Cat Plugins (by Webdados)","header_description":"","assets_banners_color":"706d61","last_updated":"2026-04-12 11:29:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.webdados.pt\/wordpress\/plugins\/portugal-states-distritos-woocommerce-wordpress\/","header_author_uri":"https:\/\/nakedcatplugins.com","rating":5,"author_block_rating":0,"active_installs":5000,"downloads":74703,"num_ratings":9,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"webdados","date":"2014-09-20 08:19:07"},"1.1":{"tag":"1.1","author":"webdados","date":"2014-09-22 15:11:21"},"1.2":{"tag":"1.2","author":"webdados","date":"2014-10-26 15:57:42"},"1.3":{"tag":"1.3","author":"webdados","date":"2014-10-29 12:19:08"},"1.4":{"tag":"1.4","author":"webdados","date":"2016-06-06 16:40:01"},"1.4.1":{"tag":"1.4.1","author":"webdados","date":"2016-10-15 11:22:07"},"1.5":{"tag":"1.5","author":"webdados","date":"2016-11-17 11:23:35"},"1.5.1":{"tag":"1.5.1","author":"webdados","date":"2016-12-09 16:50:41"},"1.5.2":{"tag":"1.5.2","author":"webdados","date":"2017-03-27 14:47:08"},"1.5.3":{"tag":"1.5.3","author":"webdados","date":"2017-11-09 15:17:54"},"1.5.3.1":{"tag":"1.5.3.1","author":"webdados","date":"2018-01-30 22:42:50"},"1.5.3.2":{"tag":"1.5.3.2","author":"webdados","date":"2018-01-30 22:50:29"},"2.0":{"tag":"2.0","author":"webdados","date":"2018-02-01 13:44:09"},"2.1":{"tag":"2.1","author":"webdados","date":"2018-08-02 14:06:08"},"2.1.1":{"tag":"2.1.1","author":"webdados","date":"2018-08-20 11:13:06"},"2.1.2":{"tag":"2.1.2","author":"webdados","date":"2018-10-23 20:11:02"},"2.1.3":{"tag":"2.1.3","author":"webdados","date":"2018-12-16 15:22:00"},"2.1.3.1":{"tag":"2.1.3.1","author":"webdados","date":"2018-12-18 10:33:47"},"2.1.4":{"tag":"2.1.4","author":"webdados","date":"2019-10-09 08:50:39"},"2.1.5":{"tag":"2.1.5","author":"webdados","date":"2019-12-03 10:44:27"},"2.1.5.1":{"tag":"2.1.5.1","author":"webdados","date":"2019-12-03 11:14:16"},"2.1.5.2":{"tag":"2.1.5.2","author":"webdados","date":"2020-01-15 22:33:51"},"2.1.6":{"tag":"2.1.6","author":"webdados","date":"2020-03-23 14:05:58"},"2.1.7":{"tag":"2.1.7","author":"webdados","date":"2020-05-05 08:50:10"},"2.1.8":{"tag":"2.1.8","author":"webdados","date":"2020-11-24 17:15:27"},"2.1.9":{"tag":"2.1.9","author":"webdados","date":"2021-03-10 07:24:23"},"3.0.0":{"tag":"3.0.0","author":"webdados","date":"2021-04-08 08:47:48"},"3.0.1":{"tag":"3.0.1","author":"webdados","date":"2021-04-14 12:45:47"},"3.0.2":{"tag":"3.0.2","author":"webdados","date":"2021-04-14 16:40:16"},"3.0.3":{"tag":"3.0.3","author":"webdados","date":"2021-05-14 10:50:30"},"3.1.0":{"tag":"3.1.0","author":"webdados","date":"2022-06-30 08:47:19"},"3.3":{"tag":"3.3","author":"webdados","date":"2023-04-17 17:30:14"},"3.4":{"tag":"3.4","author":"webdados","date":"2023-07-06 16:58:10"},"3.4.1":{"tag":"3.4.1","author":"webdados","date":"2023-07-08 10:14:27"},"3.5":{"tag":"3.5","author":"webdados","date":"2023-12-12 11:34:13"},"3.6":{"tag":"3.6","author":"webdados","date":"2024-03-27 15:29:50"},"3.7":{"tag":"3.7","author":"webdados","date":"2024-04-20 10:11:25"},"3.8":{"tag":"3.8","author":"webdados","date":"2024-10-07 10:37:22"},"3.9":{"tag":"3.9","author":"nakedcatplugins","date":"2025-04-14 08:18:16"},"4.0":{"tag":"4.0","author":"nakedcatplugins","date":"2025-06-24 15:35:23"},"4.1":{"tag":"4.1","author":"nakedcatplugins","date":"2025-11-05 15:45:37"},"4.2":{"tag":"4.2","author":"nakedcatplugins","date":"2026-04-12 08:20:02"},"5.1":{"tag":"5.1","author":"nakedcatplugins","date":"2026-04-12 10:57:21"},"5.2":{"tag":"5.2","author":"nakedcatplugins","date":"2026-04-12 11:29:15"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":9},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3503329,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3503329,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3503329,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4","1.4.1","1.5","1.5.1","1.5.2","1.5.3","1.5.3.1","1.5.3.2","2.0","2.1","2.1.1","2.1.2","2.1.3","2.1.3.1","2.1.4","2.1.5","2.1.5.1","2.1.5.2","2.1.6","2.1.7","2.1.8","2.1.9","3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.3","3.4","3.4.1","3.5","3.6","3.7","3.8","3.9","4.0","4.1","4.2","5.1","5.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3513,6264,46089,3522,14824],"plugin_category":[45],"plugin_contributors":[240703,78419],"plugin_business_model":[],"class_list":["post-31859","plugin","type-plugin","status-publish","hentry","plugin_tags-address","plugin_tags-districts","plugin_tags-portugal","plugin_tags-postcode","plugin_tags-states","plugin_category-ecommerce","plugin_contributors-nakedcatplugins","plugin_contributors-webdados","plugin_committers-nakedcatplugins","plugin_committers-webdados","plugin_support_reps-nakedcatplugins","plugin_support_reps-ptwooplugins","plugin_support_reps-webdados"],"banners":{"banner":"https:\/\/ps.w.org\/portugal-states-distritos-for-woocommerce\/assets\/banner-772x250.jpg?rev=3503329","banner_2x":"https:\/\/ps.w.org\/portugal-states-distritos-for-woocommerce\/assets\/banner-1544x500.jpg?rev=3503329","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/portugal-states-distritos-for-woocommerce\/assets\/icon.svg?rev=3503329","icon":"https:\/\/ps.w.org\/portugal-states-distritos-for-woocommerce\/assets\/icon.svg?rev=3503329","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds the 18 Portuguese \u201cStates\u201d (known as \u201cDistritos\u201d) plus the 2 Autonomous Regions (known as \u201cRegi\u00f5es Aut\u00f3nomas\u201d, Madeira and A\u00e7ores) to WooCommerce.<\/p>\n\n<p>Also sets the right name for \u201cDistricts\u201d and the correct \u201cPostcode\u201d\/\u201cCity\u201d order and the correct address format for Portugal.<\/p>\n\n<p>And... that\u2019s pretty much it.<\/p>\n\n<p>Banner photo by <a href=\"https:\/\/wordpress.org\/photos\/photo\/13866332ac\/\">Nilo Velez<\/a>.<\/p>\n\n<h4>Features:<\/h4>\n\n<ul>\n<li>Adds the Portuguese \u201cStates\u201d, known as \u201cDistritos\u201d, to WooCommerce<\/li>\n<li>Sets the correct address format for Portugal, including the correct \u201cPostal Code\u201d\/\u201cCity\u201d positioning on the checkout<\/li>\n<\/ul>\n\n<h4>Do your customers still write the full address details manually on the checkout?<\/h4>\n\n<p>Activate the automatic filling of the address details at the checkout, including street name and neighbourhood, based on the postal, avoiding incorrect data at the time of shipping, with our plugin <a href=\"https:\/\/nakedcatplugins.com\/product\/portuguese-postcodes-for-woocommerce-technical-support\/\">Portuguese Postcodes for WooCommerce<\/a><\/p>\n\n<p>The Portuguese Postcodes plugin can also do a district-postcode cross validation on checkout and guarantee they match.<\/p>\n\n<h4>Are you already issuing automatic invoices on your WooCommerce store?<\/h4>\n\n<p>If not, get to know our new plugin: <a href=\"https:\/\/wordpress.org\/plugins\/woo-billing-with-invoicexpress\/\">Invoicing with InvoiceXpress for WooCommerce<\/a><\/p>\n\n<h4>Other (premium) plugins<\/h4>\n\n<p>Already know our other WooCommerce (premium) plugins?<\/p>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/portuguese-postcodes-for-woocommerce-technical-support\/\">Portuguese Postcodes for WooCommerce<\/a> - Automatic filling of the address details at the checkout, including street name and neighborhood, based on the postal code<\/li>\n<li><a href=\"https:\/\/invoicewoo.com\/\">Invoicing with InvoiceXpress for WooCommerce<\/a> - Automatically issue invoices directly from the WooCommerce order<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/dpd-portugal-for-woocommerce\/\">DPD Portugal for WooCommerce<\/a> - Create shipping and return guide in the DPD webservice directly from the WooCommerce order<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/feed-kuantokusta-for-woocommerce-pro\/\">Feed KuantoKusta for WooCommerce<\/a> - Publish your products on Kuanto Kusta with this easy to use feed generator<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/multibanco-mbway-credit-card-payshop-ifthenpay-woocommerce-pro-add-on\/\">Multibanco, MBWAY, Credit card, Payshop and Cofidis Pay for WooCommerce \u2013 PRO add-on<\/a> - Extra features for the plugin you already trust to receive payments on your WooCommerce store<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/simple-custom-fields-for-woocommerce-blocks-checkout\/\">Simple Checkout Fields Manager for WooCommerce<\/a> - Add custom fields and manage (remove, make required or optional) core fields on the new WooCommerce Block-based Checkout<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/simple-woocommerce-order-approval\/\">Simple WooCommerce Order Approval<\/a> - The hassle-free solution for WooCommerce order approval before payment<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/shop-as-client-for-woocommerce-pro-add-on\/\">Shop as Client for WooCommerce<\/a> - Quickly create orders on behalf of your customers<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/\">Taxonomy\/Term and Role based Discounts for WooCommerce<\/a> - Easily create bulk discount rules for products based on any taxonomy terms (built-in or custom)<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/dpd-seur-geopost-pickup-and-lockers-network-for-woocommerce\/\">DPD \/ SEUR \/ Geopost Pickup and Lockers network for WooCommerce<\/a> - Deliver your WooCommerce orders on the DPD and SEUR Pickup network of Parcelshops and Lockers in 21 European countries<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Use the included automatic install feature on your WordPress admin panel and search for \u201cPortugal States (Distritos) for WooCommerce\u201d.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"after%20version%203.0.0%20the%20postcode%20and%20postcode%20city%20are%20showing%20side%20by%20side%20on%20the%20checkout%20and%20i%20want%20it%20the%20way%20it%20was%20before.%20what%20do%20i%20revert%20it%3F\"><h3>After version 3.0.0 the Postcode and Postcode City are showing side by side on the checkout and I want it the way it was before. What do I revert it?<\/h3><\/dt>\n<dd><p>Add this to your (child) theme\u2019s functions.php file:\n    add_filter( 'woocommerce_portugal_postcode_class', function( $class ) {\n        return array( 'form-row-wide' );\n    });\n    add_filter( 'woocommerce_portugal_city_class', function( $class ) {\n        return array( 'form-row-wide' );\n    });<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20the%20new%20woocommerce%20high-performance%20order%20storage%3F\"><h3>Is this plugin compatible with the new WooCommerce High-Performance Order Storage?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20the%20new%20woocommerce%20block-based%20cart%20and%20checkout%3F\"><h3>Is this plugin compatible with the new WooCommerce block-based Cart and Checkout?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20express%20checkout%2C%20like%20apple%20and%20google%20pay%3F\"><h3>Is this plugin compatible with Express Checkout, like Apple and Google Pay?<\/h3><\/dt>\n<dd><p>Apple and Google are not requesting the \u201cDistrito\u201d field in Apple Pay addresses, which causes checkout to fail if you set your shipping zones with \u201cDistritos\u201d.\nSo, if you\u2019re using these methods, we recommend you set your shipping zones with postcode intervals; for example, one zone for Portugal, restricted to postcodes 0000000...8999999, and another for the islands, restricted to 9000000...9999999.\nYou can keep using this plugin, but the shipping zones should be set with postcodes.<\/p>\n\n<p>Alternatively, version 7.0 of our \u201c<a href=\"https:\/\/nakedcatplugins.com\/product\/portuguese-postcodes-for-woocommerce-technical-support\/\">Portuguese Postcodes for WooCommerce<\/a>\u201d plugin, alongside \u201cWooCommerce Stripe Payment Gateway\u201d version 10.2.0 or above, fixes this.<\/p>\n\n<p>Or you can use Apple Pay and Google Pay via the <a href=\"https:\/\/wordpress.org\/plugins\/multibanco-ifthen-software-gateway-for-woocommerce\/\">ifthenpay gateway with our plugin<\/a>, which fetches the address from the WooCommerce checkout.<\/p><\/dd>\n<dt id=\"i%20need%20help%2C%20can%20i%20get%20technical%20support%3F\"><h3>I need help, can I get technical support?<\/h3><\/dt>\n<dd><p>This is a free plugin. It\u2019s our way of giving back to the wonderful WordPress community.<\/p>\n\n<p>There\u2019s a support tab on the top of this page, where you can ask the community for help. We\u2019ll try to keep an eye on the forums but we cannot promise to answer support tickets.<\/p>\n\n<p>If you reach us by email or any other direct contact method, we\u2019ll assume you need premium, paid-for support.<\/p><\/dd>\n<dt id=\"where%20do%20i%20report%20security%20vulnerabilities%20found%20in%20this%20plugin%3F\"><h3>Where do I report security vulnerabilities found in this plugin?<\/h3><\/dt>\n<dd><p>You can report any security bugs found in the source code of this plugin through the <a href=\"https:\/\/patchstack.com\/database\/vdp\/portugal-states-distritos-for-woocommerce\">Patchstack Vulnerability Disclosure Program<\/a>. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>5.2 - 2025-04-12<\/h4>\n\n<ul>\n<li>[FIX] PHP fatal error, introduced in 5.0, in specific scenarios<\/li>\n<li>[FIX] Version number<\/li>\n<\/ul>\n\n<h4>5.0 - 2025-04-10<\/h4>\n\n<ul>\n<li>[NEW] Plugin ownership transferred from <a href=\"https:\/\/profiles.wordpress.org\/webdados\/\">Marco Almeida | Webdados<\/a> to <a href=\"https:\/\/profiles.wordpress.org\/nakedcatplugins\/\">Naked Cat Plugins<\/a> on WordPress.org - No worries, we\u2019re the same people :-)<\/li>\n<li>[TWEAK] Added <a href=\"https:\/\/wordpress.org\/plugins\/multibanco-ifthen-software-gateway-for-woocommerce\/\">our ifthenpay plugin<\/a> as a suggested payment gateway in WooCommerce, if still not present (can be removed by setting the <code>NAKEDCAT_RECOMMEND_IFTHENPAY<\/code> constant to true)<\/li>\n<li>[DEV] Removed <code>load_plugin_textdomain<\/code> call as WordPress handles it<\/li>\n<li>[DEV] Improved PHPCS rules<\/li>\n<li>[DEV] Implement release automations via GitHub Actions<\/li>\n<li>[DEV] Tested up to WordPress 7.0-RC2-62197 and WooCommerce 10.7.0-beta.2<\/li>\n<\/ul>\n\n<h4>4.2 - 2025-12-11<\/h4>\n\n<ul>\n<li>[TWEAK] Add information to the readme file regarding instant payment methods not requesting \u201cDistrito\u201d for Portuguese addresses, and the fix available by using <a href=\"https:\/\/nakedcatplugins.com\/product\/portuguese-postcodes-for-woocommerce-technical-support\/\">Portuguese Postcodes for WooCommerce<\/a><\/li>\n<li>[DEV] Tested with WordPress 7.0-alpha-61365 and WooCommerce 10.4.0<\/li>\n<\/ul>\n\n<h4>4.1 - 2025-10-05<\/h4>\n\n<ul>\n<li>[TWEAK] Add information to the readme file regarding instant payment methods not requesting \u201cDistrito\u201d for Portuguese addresses<\/li>\n<li>[DEV] Tested up to WordPress 6.9-beta2-61099 and WooCommerce 10.3.4<\/li>\n<\/ul>\n\n<h4>4.0 - 2025-06-24<\/h4>\n\n<ul>\n<li>[TWEAK] Improve the mechanism to keep the \u201cPortuguese Postcodes for WooCommerce\u201d admin notice from showing to the same user in the next 120 days after dismissal<\/li>\n<li>[DEV] Tested up to WordPress 6.9-alpha-60342 and WooCommerce 10.0.0-rc.1<\/li>\n<\/ul>\n\n<h4>3.9 - 2025-04-14<\/h4>\n\n<ul>\n<li>[NEW] We are now called Naked Cat Plugins \ud83d\ude3b<\/li>\n<li>[DEV] Requires WordPress 5.8, WooCommerce 7.1, and PHP 7.2<\/li>\n<li>[DEV] Tested with WordPress 6.8-RC3-60146 and WooCommerce 9.8.1<\/li>\n<\/ul>\n\n<h4>3.8 - 2024-10-07<\/h4>\n\n<ul>\n<li>[FIX] Remove unused <code>postcode_before_city<\/code> locale property which was causing a PHP notice on the blocks checkout<\/li>\n<li>[DEV] Requires WooCommerce 7.0<\/li>\n<li>[DEV] Tested with WordPress 6.7-beta1-59158 and WooCommerce 9.4.0-beta.2<\/li>\n<\/ul>\n\n<h4>3.7 - 2024-04-20<\/h4>\n\n<ul>\n<li>[TWEAK] Compatibility with checkout block custom fields<\/li>\n<li>[DEV] Tested with WordPress 6.6-alpha-58011 and WooCommerce 8.9.0-dev<\/li>\n<\/ul>\n\n<h4>3.6 - 2024-03-27<\/h4>\n\n<ul>\n<li>[DEV] Set <code>Requires Plugins<\/code> tag to <code>woocommerce<\/code><\/li>\n<li>[DEV] Tested with WordPress 6.5-RC3-57875 and WooCommerce 8.8.0-beta.1<\/li>\n<\/ul>\n\n<h4>3.5 - 2023-12-12<\/h4>\n\n<ul>\n<li>Declare WooCommerce block-based Cart and Checkout compatibility<\/li>\n<li>Requires WooCommerce 5.0 and WordPress 5.4<\/li>\n<li>Tested with WordPress 6.5-alpha-57159 and WooCommerce 8.4.0-rc.1<\/li>\n<\/ul>\n\n<h4>3.4.1 - 2023-07-07<\/h4>\n\n<ul>\n<li>Fix some strings and links<\/li>\n<\/ul>\n\n<h4>3.4 - 2023-07-06<\/h4>\n\n<ul>\n<li>Requires WooCommerce 5.0<\/li>\n<li>Tested with WordPress 6.3-beta3-56143 and WooCommerce 7.9.0-rc.2<\/li>\n<\/ul>\n\n<h4>3.3 - 2022-11-09<\/h4>\n\n<ul>\n<li>Tested and confirmed WooCommerce HPOS compatibility<\/li>\n<li>Tested with WordPress 6.2-alpha-54748 and WooCommerce 7.1<\/li>\n<\/ul>\n\n<h4>3.2.0 - 2022-06-30<\/h4>\n\n<ul>\n<li>New brand: PT Woo Plugins \ud83e\udd73<\/li>\n<li>Requires WordPress 5.0, WooCommerce 3.0 and PHP 7.0<\/li>\n<li>Tested with WordPress 6.1-alpha-53556 and WooCommerce 6.7.0-beta.2<\/li>\n<\/ul>\n\n<h4>3.0.3 - 2021-05-14<\/h4>\n\n<ul>\n<li>Fix the order in which we set the address format because other plugin\u2019s changes, like EU VAT Assistant, were being overriden<\/li>\n<li>New <code>woocommerce_portugal_localisation_address_formats_priority<\/code> filter to change the hook priority for the address format<\/li>\n<li>Tested with WooCommerce 5.3.0<\/li>\n<\/ul>\n\n<h4>3.0.2 - 2021-04-14<\/h4>\n\n<ul>\n<li>Removed the information about WooCommerce 5.2.0 from the readme.txt file as the change was reverted on WooCommerce 5.2.1<\/li>\n<\/ul>\n\n<h4>3.0.1 - 2021-04-14<\/h4>\n\n<ul>\n<li>Important information on readme.txt about WooCommerce 5.2.0 and the fact they now include the Portuguese Districts.<\/li>\n<\/ul>\n\n<h4>3.0.0 - 2021-04-08<\/h4>\n\n<ul>\n<li>Complete code refactoring<\/li>\n<li>Show Postcode and Postcode City side by side on the checkout and added two new filters to change it: <code>woocommerce_portugal_postcode_class<\/code> and <code>woocommerce_portugal_city_class<\/code><\/li>\n<li>Changed the (english) city label from \u201cPostcode Town \/ City\u201d to \u201cPostcode City\u201d (no changes in Portuguese)<\/li>\n<li>Added support information to the Frequently Asked Questions readme section<\/li>\n<li>Requires WooCommerce 3.0<\/li>\n<li>Tested with WordPress 5.8-alpha-50689 and WooCommerce 5.2.0-rc.2<\/li>\n<\/ul>\n\n<h4>2.1.9 - 2021-03-10<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.8-alpha-50516 and WooCommerce 5.1.0<\/li>\n<\/ul>\n\n<h4>2.1.8<\/h4>\n\n<ul>\n<li>Tested with 5.6-beta3-49562 and WooCommerce 4.8.0-beta.1<\/li>\n<\/ul>\n\n<h4>2.1.7<\/h4>\n\n<ul>\n<li>New <a href=\"https:\/\/nakedcatplugins.com\/product\/portuguese-postcodes-for-woocommerce-technical-support\/\">Portuguese Postcodes for WooCommerce<\/a> plugin information<\/li>\n<li>Tested with 5.5-alpha-47761 and WooCommerce 4.1.0-rc.2<\/li>\n<\/ul>\n\n<h4>2.1.6<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.3.3-alpha-47419 and WooCommerce 4.0.1<\/li>\n<\/ul>\n\n<h4>2.1.5.2<\/h4>\n\n<ul>\n<li>Changes on the InvoiceXpress banner<\/li>\n<\/ul>\n\n<h4>2.1.5.1<\/h4>\n\n<ul>\n<li>Fix version number<\/li>\n<\/ul>\n\n<h4>2.1.5<\/h4>\n\n<ul>\n<li>Hide the InvoiceXpress nag if the invoicing is already installed and active<\/li>\n<li>Tested with WordPress 5.3.1-alpha-46798 and WooCommerce 3.8.1<\/li>\n<\/ul>\n\n<h4>2.1.4<\/h4>\n\n<ul>\n<li>Change InvoiceXpress nag interval from 30 to 90 days<\/li>\n<li>Tested with WordPress 5.2.4-alpha-46074 and WooCommerce 3.8.0-beta.1<\/li>\n<li>Requires PHP 5.6<\/li>\n<\/ul>\n\n<h4>2.1.3.1<\/h4>\n\n<ul>\n<li>readme.txt small fix<\/li>\n<\/ul>\n\n<h4>2.1.3<\/h4>\n\n<ul>\n<li>Tested with WooCommerce 3.5.2<\/li>\n<li>Bumped <code>WC tested up<\/code> tag<\/li>\n<li>Bumped <code>Requires at least<\/code> tag<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>Tested with WooCommerce 3.5<\/li>\n<li>Bumped <code>WC tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Added the <code>woocommerce_portugal_postcode_priority<\/code> filter to allow overriding the \u201cPostal Code\u201d priority value<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Fix \u201cPostal Code\u201d\/\u201cCity\u201d fields order on the checkout on newer WooCommerce versions<\/li>\n<li>The \u201cCity\u201d field label is now \u201cPostcode Town \/ City\u201d on the checkout<\/li>\n<li>New <code>woocommerce_portugal_city_label<\/code> filter to be able to change the \u201cCity\u201d field label<\/li>\n<li>New <code>woocommerce_portugal_state_label<\/code> filter to be able to change the \u201cDistrict\u201d field label<\/li>\n<li>New <code>woocommerce_portugal_state_required<\/code> filter to be able to set the \u201cDistrict\u201d field as not required<\/li>\n<li>Bumped <code>WC tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Removed the district from the plain text address format for Portugal, as we do not use it on a day to day basis: \u201c{name}\\n{company}\\n{address_1}\\n{address_2}\\n{postcode} {city}\\n{country}\u201d (can be restored via the <code>woocommerce_portugal_address_format_include_state<\/code> filter)<\/li>\n<li>Better coding standards<\/li>\n<\/ul>\n\n<h4>1.5.3.2<\/h4>\n\n<ul>\n<li>Fixed readme.txt<\/li>\n<\/ul>\n\n<h4>1.5.3.1<\/h4>\n\n<ul>\n<li>Tested with WooCommerce 3.3<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>1.5.3<\/h4>\n\n<ul>\n<li>Removed the translation files from the plugin <code>lang<\/code> folder (the translations are now managed on WordPress.org\u2019s GlotPress tool and will be automatically downloaded from there)<\/li>\n<li>Tested with WooCommerce 3.2<\/li>\n<li>Added <code>WC tested up to<\/code> tag on the plugin main file<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>Tested with WooCommerce 3.0.0-rc.2<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<li>Portuguese translation update<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Sets the correct Portuguese address format: \u201c{name}\\n{company}\\n{address_1}\\n{address_2}\\n{postcode} {city}\\n{state}\\n{country}\u201d<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Bumped \u201cRequires at least\u201d and \u201cTested up to\u201d tags<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>The district is now required by default, as is on all the other countries that have states loaded by the WooCommerce core<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Important bug fix: No longer overrides other countries states<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>WordPress Multisite support<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Now also sets the right name for \u201cDistricts\u201d and the correct \u201cPostal Code\u201d\/\u201cCity\u201d order<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"This plugin adds the Portuguese \u201cStates\u201d, known as \u201cDistritos\u201d, to WooCommerce and sets the correct address format for Portugal.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31859"}],"author":[{"embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nakedcatplugins"}],"wp:attachment":[{"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31859"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31859"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31859"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31859"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31859"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}