Support » Plugin: Custom Post Type UI » FR: Save CPTs to JSON for better dev practices

  • Resolved Elliot Taylor


    Feature Request:

    Save all CPTs as a local JSON object that can be read and used to update other databases. This would be helpful for developers developing in different environments with isolated databases.

    Example: Currently with Advanced Custom Fields if I create a folder called acf-json in my theme then any custom fields are saved as a json file. When I think push my files to a different environment then ACF detects the JSON file and updates the fields.

    As CPT UI already produces the PHP Code for export/placing in the theme, perhaps this could be amended to allow this kind of local JSON storage as per above?

    Happy to expand more and here is a reference for how ACF manage this process:


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Beckwith


    The BenchPresser

    Here you go:

    Not an often requested feature, but it got brought up a couple years back and I liked the sound of the challenge of sorts.

    Thread Starter Elliot Taylor


    Amazing Michael! Will use this. Would be great to add to the plugin core and then enable this feature if /cptui-json/ folder detected.

    Understand not wanting to bulk the plugin, but nice for us dev’s who use this process for ACF already.


    Plugin Author Michael Beckwith


    The BenchPresser

    Not necessarily a frequent enough request to warrant adding to core, however I also added some WP-CLI support and I don’t know how much that will actually get used either, so I won’t outright say no right now đŸ˜€

    I could also see myself turning it into its own standalone extension instead of just being a quick tutorial.

    Oh, the options!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FR: Save CPTs to JSON for better dev practices’ is closed to new replies.