BUILT-IN POST TYPES
Label | Post Type |
---|---|
Posts | post |
Pages | page |
Media | attachment |
Revisions | revision |
Navigation Menu Items | nav_menu_item |
Custom CSS | custom_css |
Changesets | customize_changeset |
oEmbed Responses | oembed_cache |
Use the init hook in order to call register_post_type() before the admin_menu and after the after_setup_theme action hooks.
The values title and editor are defaults for supports. The boolean false can be passed as value instead of an array to prevent default (title and editor) behavior.
The argument taxonomies defaults to none. The values category and post_tag are previously registered. Custom taxonomies need to be registered with register_taxonomy().