Home › Forums › ACF PRO › Empty Array on 'acf/get_field_groups' › Reply To: Empty Array on 'acf/get_field_groups'
I did some more work on this and found the following missing elements that worked in v4 and now in v5/PRO don’t work.
apply_filters( 'acf/get_field_groups', array() )
apply_filters( 'acf/location/match_field_groups', array(), $match_args )
apply_filters( 'acf/field_group/get_fields', array(), $group['id'] )
I used the following:
acf_get_field_groups()
acf_get_field_groups($match_args )
acf_get_fields( $matchinggroup['ID'] )
This ‘hack’ is working HOWEVER it is a problem because I enabled the local JSON cache directory and the fix I worked out immediately failed again.
Your thoughts are much appreciated.
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.