Skip to content

in-DB post-type exported as PHP, the scaffold post-type way #29

Open
@drzraf

Description

@drzraf

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 garbage
  • post-type get is handy and uniformized, but lacks the reusable format (including the register_post_type, ...

Could the later be improved to include feature and specificities of the first two?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions