Home › Forums › ACF PRO › Opinion: Register fields via PHP or Local JSON? › Reply To: Opinion: Register fields via PHP or Local JSON?
Sorry if this should be obvious to me, but here’s what I’ve done on a local project, and I’m a little confused
acf/init
hook to call a function that runs acf_add_local_field_group
on that PHP I exportedBut now I thought somehow the ACF UI would be regenerated, for further customization, if needed. It isn’t being regenerated.
I haven’t tried the same with JSON exports (which we’ve previously using in a completely manual way to set up new dev instances).
Is there a trick to using PHP to regenerate the ACF Field Group config (GUI) for a field group? It’s not something that can be imported, like JSON, and it looks like there’s reference in the above discussion to exporting both PHP and JSON, maybe for the purposes of rebuilding the graphical configuration, but I’m not sure.
I’d rather stick to one approach (just PHP or JSON). Any advice is welcome
Thanks
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.