Hi @alessietto
You can get the field group list by using the acf_get_field_groups()
function. Please check the answer in this thread to learn more about it: https://support.advancedcustomfields.com/forums/topic/field-always-returns-null/.
I hope this helps 🙂