ACF Field Group Composer
Configuration builder for advanced custom fields field groups
by bleech GmbH · github.com/flyntwp/acf-field-group-composer · website
★ 51stars
164kcomposer installs
14forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/flyntwp/acf-field-group-composer/archive/refs/heads/master.zipAlso on Packagist as flyntwp/acf-field-group-composer:
composer require flyntwp/acf-field-group-composerFrom the readme
acf-field-group-composer
Configuration builder for advanced custom fields field groups
This plugin helps you create reusable ACF fields and field groups with code.
Table of Contents
- Background
- Install
- Usage
- API
- Maintainers
- Contribute
- License
Background
ACF provides a great interface to create custom meta boxes in WordPress. However, there are to major downsides using it out of the box:
1. Configuring ACF via its GUI can be cumbersome if you have a lot of custom fields. Also fields created via the GUI are only stored in the database. This means that migrating fields between different stages of a development setup can only be done by migrating the database as well.
2. The local JSON feature and addlocalfieldgroup are handy for checking the config into SCM and deploying it to different environments, but it lacks some customizability, like reusing previously specified fields in different contexts.
The acf-field-group-composer helps circumventing these downsides. It let's you use the build-in addlocalfieldgroup function, and automatically adds unique keys to all fields added. Plus, if a field is not an array but a string, it will apply a filter with that name and
Read the full README on GitHub →