{"id":27919349,"url":"https://github.com/natanrock/polylang-acf-cli","last_synced_at":"2026-04-29T17:02:12.005Z","repository":{"id":291568153,"uuid":"978027386","full_name":"NatanRock/polylang-acf-cli","owner":"NatanRock","description":"Automate ACF + Polylang Pro translations settings via WP-CLI or one-time script. Supports nested fields, easy to use, perfect for developers and automation.Script for bulk change tranlations","archived":false,"fork":false,"pushed_at":"2025-05-05T13:16:08.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T19:16:54.690Z","etag":null,"topics":["acf","acf-pro","automation","cli","developer-tools","polylang","translations","wordpress","wp-cli"],"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/NatanRock.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,"zenodo":null}},"created_at":"2025-05-05T11:05:54.000Z","updated_at":"2025-05-05T13:16:11.000Z","dependencies_parsed_at":"2025-05-06T19:16:54.651Z","dependency_job_id":null,"html_url":"https://github.com/NatanRock/polylang-acf-cli","commit_stats":null,"previous_names":["natanrock/cli-polylang-acf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NatanRock/polylang-acf-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatanRock%2Fpolylang-acf-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatanRock%2Fpolylang-acf-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatanRock%2Fpolylang-acf-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatanRock%2Fpolylang-acf-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatanRock","download_url":"https://codeload.github.com/NatanRock/polylang-acf-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatanRock%2Fpolylang-acf-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","acf-pro","automation","cli","developer-tools","polylang","translations","wordpress","wp-cli"],"created_at":"2025-05-06T19:16:52.939Z","updated_at":"2026-04-29T17:02:11.971Z","avatar_url":"https://github.com/NatanRock.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ACF × Polylang CLI Tools\n\n![ACF x Polylang CLI](https://img.shields.io/badge/ACF--Polylang-CLI-blue?style=for-the-badge)\n![License: MIT](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)\n\nTools to automate the `Translations` setting in ACF fields when working with **Polylang Pro + ACF Pro**.\n\nNo more manually setting \"Copy Once\", \"Ignore\" or \"Synchronize\" for each field. Automate this process and save your time.\n\n## 🚀 Features\n\n| Feature         | Description                                               |\n| --------------- | --------------------------------------------------------- |\n| Bulk update     | Update ACF field translation modes via WP-CLI             |\n| Nested support  | Supports groups, repeaters, flexible content              |\n| **Two methods** | **Use either as a one-time script or as a WP-CLI plugin** |\n| Quick script    | One-time script for fast changes without CLI command      |\n\n## 📦 Installation\n\n| File             | Location                                                           |\n| ---------------- | ------------------------------------------------------------------ |\n| `plugin-cli.php` | Place in `wp-content/mu-plugins` (or `plugins`) for WP-CLI usage   |\n| `script-cli.php` | Anywhere (optional), used with `wp eval-file` for one-time updates |\n\n```bash\ngit clone https://github.com/your-repo/cli-polylang-acf.git\n```\n\n## ✅ WP-CLI Command (recommended)\n\n`plugin-cli.php` registers a custom WP-CLI command:\n\n```bash\nwp acf-polylang set --mode=copy_once --type=image\n```\n\n### Options\n\n| Option   | Description                                                           |\n| -------- | --------------------------------------------------------------------- |\n| `--mode` | ignore / copy\\_once / translate / synchronize / translate\\_once       |\n| `--type` | image / text / textarea / wysiwyg / group / repeater / \\* (all types) |\n\n### Examples\n\n```bash\n# Set all image fields to \"Copy Once\"\nwp acf-polylang set --mode=copy_once --type=image\n\n# Set all text and textarea fields to \"Ignore\"\nwp acf-polylang set --mode=ignore --type=text,textarea\n\n# Set everything to \"Synchronize\"\nwp acf-polylang set --mode=synchronize --type=*\n```\n\n## ⚡ One-time Script (quick usage)\n\nFor quick changes without installing the CLI command:\n\n```bash\nwp eval-file path/to/script-cli.php\n```\n\nBefore running, edit `script-cli.php` to configure:\n\n```php\n$mode       = 'copy_once';  // Mode: ignore, copy_once, translate, synchronize\n$targetType = 'image';      // Field type (or \"*\" for all)\n```\n\nWhen executed, all matching ACF fields will be updated recursively.\n\n## 👉 How to choose method\n\n| Use case                                   | Recommended method                 |\n| ------------------------------------------ | ---------------------------------- |\n| One-time bulk update                       | One-time Script (simple and quick) |\n| Regular / repeatable updates or automation | WP-CLI Command (recommended)       |\n| CI/CD or deployment tasks                  | WP-CLI Command                     |\n| Developers unfamiliar with CLI             | One-time Script                    |\n\nBoth methods produce the same result — choose based on your workflow and frequency of use.\n\n## 📌 Notes\n\n| Tip          | Info                                                    |\n| ------------ | ------------------------------------------------------- |\n| Backup       | Always backup your database before bulk updating fields |\n| Sub fields   | Supported: group, repeater, flexible content            |\n| Auto updates | Automatically updates ACF field objects in the database |\n| ACF JSON     | Run `wp acf sync` or resave field groups after updating |\n\n## 📚 License\n\nMIT — free to use, modify, and share.\n\n---\n\n**Made for developers who don't want to click hundreds of fields manually.**\nEnjoy automation and focus on what matters.\n\n---\n\n# 📖 Changelog\n\n## \\[v1.0.0] - 2025-05-05\n\n### Added\n\n* Initial stable release.\n* WP-CLI command support to bulk update ACF translation modes.\n* One-time PHP script for fast non-CLI usage.\n* Support for nested fields: Group, Repeater, Flexible Content.\n* MIT license.\n\n### Notes\n\n* Make sure to backup the database before using the bulk update scripts.\n* Compatible with ACF JSON sync workflows.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatanrock%2Fpolylang-acf-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatanrock%2Fpolylang-acf-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatanrock%2Fpolylang-acf-cli/lists"}