Git and deploys
Write the JSON files in another folder
By default the files are written in ugly-json/ of your theme. Two filters change it: ugly_json_paths (where files are read from) and ugly_json_save_path (where they are written).
You want: the JSON files of your groups in another folder of the theme, not in ugly-json/.
add_filter( 'ugly_json_save_path', function () {
return get_stylesheet_directory() . '/config/fields';
} );See Hooks and filters for every filter of this kind.
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?