I noticed that when you export a field group to PHP it uses register_field_group yet in the documentation for creating fields via PHP you recommend using acf_add_local_field_group. Is there a particular reason to use one vs the other?
I just did some digging around in the code. Basically all register_field_group()
does it call acf_add_local_field_group()
.
register_field_group is the old function and it’s still there for backwards compatibility. It’s likely that this new function has just not made it into the exported code yet.
That was my conclusion too, I just wasn’t sure if there was any particular preference. Thanks!