ACF will not do anything with a field that is not defined by acf adding the field groups and fields by one of the methods allowed, i.e. defined in the admin, defined by adding fields with PHP, or defined in a JSON file.
The way to do what you want is to create a field group and then clone that field group into the group where you want it do appear. Or you could add our fields by adding to a group using PHP.
To your first question, yes. You can use the acf/load_field_group hook. This is an undocumented hook and you’ll need to look into the code in ACF. You can use this filter hook to manipulate the fields in the group.
As for the second, you are not creating a single field, you are creating multiple nested fields. It would probably be possible to cram all of it into a single field type by creating a custom field type.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users