CPT_Core icon indicating copy to clipboard operation
CPT_Core copied to clipboard

Add REST API integration to set of defaults?

Open jmichaelward opened this issue 8 years ago • 0 comments

Glancing at the main plugin class, I see we have a set of sensible defaults for creating a new post type, but nothing for WP REST API settings (e.g., "show_in_rest"). Surely, this can be overridden via the arg_overrides parameter, but I'm wondering if it makes sense to be explicit here to indicate that CPTs can support the REST API. If that's the case, does it make sense to turn on REST API support by default?

jmichaelward avatar Apr 13 '17 18:04 jmichaelward