acf_get_local_json_files()
Returns an array of found JSON field group files.
No Hooks.
Returns
array.
Usage
acf_get_local_json_files( $post_type );
- $post_type(string)
- The ACF post type to get files for.
Default:'acf-field-group'
Changelog
| Since 5.9.0 | Introduced. |
acf_get_local_json_files() acf get local json files code ACF 6.8.8
function acf_get_local_json_files( $post_type = 'acf-field-group' ) {
return acf_get_instance( 'ACF_Local_JSON' )->get_files( $post_type );
}