I work on a company that has its own framework for working with WordPress.
One of the concepts it has is a facade pattern for handling meta data such as those provided by ACF. This means we can theoretically change from ACF to CMB2 in any project at any given time, and vice-versa.
What I’m doing is writing integration tests for this facade layer, thus I need to create, insert and get data from, then delete multiple groups and fields during runtime.
Hope I didn’t suck at explaining,
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users