As I want to use the ‘acf_add_local_field’ function to add a field, I need to get the key of the parent group field.
I have been looking in the doc but could not find a solution, any idea ?
There are a couple of ways to get this.
1) When editing the field group look at the slug field
2) Go to the export page and export the field group, it will include the key
Actually it’s very easy:
in a particular field group go to Screen Options and check slug and Field Keys so they will appear on screen.
How can this be done by code (php) ?
I just found out the key is the post_name.