Support

Account

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.