This documentation describes unreleased changes on the main branch.

PostTypeSupport

Enum backed by string.

use Saij\WpAppFramework\Post\PostTypeSupport;

Features of a post type (supports of register_post_type()). The framework adds custom-fields itself when meta is registered for the type: without it, the REST API has no meta field.

Cases

CaseValueDescription
Title'title'
Editor'editor'
Author'author'
Thumbnail'thumbnail'
Excerpt'excerpt'
Comments'comments'
Trackbacks'trackbacks'
Revisions'revisions'
PageAttributes'page-attributes'
PostFormats'post-formats'