{"id":18156219,"url":"https://github.com/tomdevisser29/toms-acf-fields","last_synced_at":"2025-05-05T21:47:45.192Z","repository":{"id":259257142,"uuid":"871666122","full_name":"tomdevisser29/toms-acf-fields","owner":"tomdevisser29","description":"A WordPress plugin that adds extra ACF field types, including improved URL and phone fields, extending the capabilities of the base plugin.","archived":false,"fork":false,"pushed_at":"2024-10-23T16:33:17.000Z","size":77,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T00:05:06.394Z","etag":null,"topics":["acf","plugin","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomdevisser29.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-12T15:45:54.000Z","updated_at":"2025-01-22T20:28:54.000Z","dependencies_parsed_at":"2024-10-24T00:35:08.555Z","dependency_job_id":null,"html_url":"https://github.com/tomdevisser29/toms-acf-fields","commit_stats":null,"previous_names":["tomdevisser29/toms-acf-fields"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdevisser29%2Ftoms-acf-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdevisser29%2Ftoms-acf-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdevisser29%2Ftoms-acf-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdevisser29%2Ftoms-acf-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomdevisser29","download_url":"https://codeload.github.com/tomdevisser29/toms-acf-fields/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252582644,"owners_count":21771699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acf","plugin","wordpress"],"created_at":"2024-11-02T05:05:45.774Z","updated_at":"2025-05-05T21:47:45.172Z","avatar_url":"https://github.com/tomdevisser29.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tom's ACF Fields\n\nThis plug-in adds some extra ACF Field Types that are not available in the base plug-in.\n\n\u003cimg width=\"693\" alt=\"Screenshot 2024-10-12 at 19 06 40\" src=\"https://github.com/user-attachments/assets/888e8691-13fc-4ff6-b903-77a967d4db13\"\u003e\n\n## Website URL\n\nThis field will automatically strip the web protocol entered (e.g. \"http\") and set it to \"https\" when you save the post, so it's always using a secure protocol.\n\nIt's also styled in a way that shows the \"https://\" prepend before the input.\n\n\u003cimg width=\"575\" alt=\"Screenshot 2024-10-12 at 19 04 35\" src=\"https://github.com/user-attachments/assets/6b4af612-9ba9-47f9-bbba-4afe3945094a\"\u003e\n\n## Phone Number\n\nThis field will automatically strip the entered phone number down to only digits. It will then create formatted phone numbers for display, links (compatible with `tel:`), and save the country code, country prefix and originally entered value.\n\n\u003cimg width=\"575\" alt=\"Screenshot 2024-10-12 at 19 04 45\" src=\"https://github.com/user-attachments/assets/ed48c6e3-31d5-4700-b65b-03402be70a96\"\u003e\n\n```\narray(6) {\n  [\"country\"]=\u003e\n  string(2) \"nl\"\n  [\"number\"]=\u003e\n  string(9) \"612345678\"\n  [\"display\"]=\u003e\n  string(15) \"+31 6 1234 5678\"\n  [\"stripped\"]=\u003e\n  string(9) \"612345678\"\n  [\"prefix\"]=\u003e\n  string(3) \"+31\"\n  [\"tel\"]=\u003e\n  string(12) \"+31612345678\"\n}\n```\n\n### Adding countries\n\nTo add more countries, you can extend this field type in 4 steps.\n\n1. Add the option to `render_field()`\n2. Add the display formatting to `format_phone_number_for_display()`\n3. Add the validation to `validate_value()`\n4. Add the correct prefix to `get_country_prefix()`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdevisser29%2Ftoms-acf-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomdevisser29%2Ftoms-acf-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdevisser29%2Ftoms-acf-fields/lists"}