Support

Account

Home Forums Feature Requests Convert PHP register_field_group array to JSON Reply To: Convert PHP register_field_group array to JSON

  • Why don’t you use json_encode() to create a JSON version of the array that you pass into register_field_group(), then all you need to do is create group key for the fields (I think it may have been the id field in previous versions), then create a json file following the acf conventions and drop it into your theme’s acf-json folder…

    I have just done this and was able to sync the fields back into the database.