Open
Description
Let's say I have custom post types created via the UI.
I needed them (in another instance, in a unit-test, ...).
Currently:
scaffold post-type
generates a dumb but neatly structured post-type.eval var_export(get_post_type_object("xxx"));
dumps the existing post-type but including some garbagepost-type get
is handy and uniformized, but lacks the reusable format (including theregister_post_type
, ...
Could the later be improved to include feature and specificities of the first two?