custom-post-type-ui icon indicating copy to clipboard operation
custom-post-type-ui copied to clipboard

WP-CLI + REST API support

Open tw2113 opened this issue 9 years ago • 7 comments

What can we add here? Possible ideas below.

WP-CLI

JSON import from file Trigger JSON export to file. Get Code to file Migrate between sites? command that prompts for all parameters we support. Constructs our data to save and injects into option.

  • yes/no for bool
  • open ended for text based or multi-select.

REST API

Endpoint to create a post type or taxonomy and have it save to settings.

tw2113 avatar Jan 18 '16 21:01 tw2113

Created wpcli branch, and have support already for import from file and export to file. Woo!

tw2113 avatar Dec 17 '16 05:12 tw2113

Add multisite support for both network level settings, as well as import/export to/from specific network sites.

tw2113 avatar Dec 18 '16 02:12 tw2113

wp cptui migrate post types or taxonomies. -flag to delete old? or do so by default -utilize existing functions

tw2113 avatar Feb 09 '17 00:02 tw2113

Single site import/export has been implemented and pushed in to release160. All other ideas need to be implemented still. Moving issue off of 1.6.0 to retain but not list as pending 1.6.0 issues

tw2113 avatar Jul 26 '18 06:07 tw2113

We merged in what we had for WP-CLI. We also had one change related to the REST API settings, to help make sure Gutenberg has some enhanced compatibility.

Still going to leave open for further consideration

tw2113 avatar Oct 24 '18 03:10 tw2113

Can you add the url of the rest api from UI of the plugin?

jdnichollsc avatar Sep 16 '20 16:09 jdnichollsc

@jdnichollsc not quite following what you're requesting here. Are you referring to say I'm in a terminal/cli window for Site 1, and want to import some CPTUI settings from Site 2? A way to say "go to this endpoint on Site 2 and get this information" ?

tw2113 avatar Sep 16 '20 20:09 tw2113