{"action":"closed","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/8319","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8319/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8319/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8319/events","html_url":"https://github.com/woothemes/woocommerce/issues/8319","id":86195210,"number":8319,"title":"Portugal post code validation","user":{"login":"webdados","id":6853605,"avatar_url":"https://avatars.githubusercontent.com/u/6853605?v=3","gravatar_id":"","url":"https://api.github.com/users/webdados","html_url":"https://github.com/webdados","followers_url":"https://api.github.com/users/webdados/followers","following_url":"https://api.github.com/users/webdados/following{/other_user}","gists_url":"https://api.github.com/users/webdados/gists{/gist_id}","starred_url":"https://api.github.com/users/webdados/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdados/subscriptions","organizations_url":"https://api.github.com/users/webdados/orgs","repos_url":"https://api.github.com/users/webdados/repos","events_url":"https://api.github.com/users/webdados/events{/privacy}","received_events_url":"https://api.github.com/users/webdados/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-08T14:20:36Z","updated_at":"2015-06-08T14:52:19Z","closed_at":"2015-06-08T14:52:19Z","body":"In order to validate Portuguese post codes (4 numbers - 3 numbers) this should be added to function is_postcode at class-wc-validation.php file:\r\n\r\n`\r\n\t\t\tcase \"PT\" :\r\n\t\t\t\tif ( preg_match( \"/^([0-9]{4})([-])([0-9]{3,3})$/\", $postcode ) )\r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n`\r\n\r\nAs a matter of fact, a filter should be added so that developers can add post code validations to any country they desire.\r\n"}}