Skip to main content

Interface: TypeEntity

Defined in: packages/core/src/data/types/entities.ts:362

Interface for entities from the /wp/v2/types endpoint.

Extends

Indexable

[k: string]: unknown

Properties

description?

optional description: string

Defined in: packages/core/src/data/types/entities.ts:366

A human-readable description of the post type.


hierarchical?

optional hierarchical: boolean

Defined in: packages/core/src/data/types/entities.ts:371

Whether or not the post type should have children.


name?

optional name: string

Defined in: packages/core/src/data/types/entities.ts:376

The title for the post type.


rest_base

rest_base: string

Defined in: packages/core/src/data/types/entities.ts:386

REST base route for the post type.


slug?

optional slug: string

Defined in: packages/core/src/data/types/entities.ts:381

An alphanumeric identifier for the post type.


taxonomies

taxonomies: string[]

Defined in: packages/core/src/data/types/entities.ts:391

Taxonomies associated with post type.


yoast_head?

optional yoast_head: null | string

Defined in: packages/core/src/data/types/entities.ts:17

Inherited from

Entity.yoast_head


yoast_head_json?

optional yoast_head_json: null | YoastJSON

Defined in: packages/core/src/data/types/entities.ts:16

Inherited from

Entity.yoast_head_json