Skip to main content

Interface: PostTypeEntity

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

Base interface for all post type entities.

Interfaces that extends from this one are:

Extends

Extended by

Indexable

[k: string]: unknown

Properties

_embedded

_embedded: object

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

author

author: AuthorEntity[]

wp:term

wp:term: TermEntity[][]


author?

optional author: AuthorEntity[]

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


comment_status?

optional comment_status: "open" | "closed"

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

Whether or not comments are open on the object.


date

date: string

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

The date the object was published, in the site's timezone.


date_gmt

date_gmt: string

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

The date the object was published, as GMT.


guid

guid: Rendered

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

The globally unique identifier for the object.


id

id: number

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

Unique identifier for the object.


link: string

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

URL to the object.


modified

modified: string

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

The date the object was last modified, in the site's timezone.


modified_gmt

modified_gmt: string

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

The date the object was last modified, as GMT.


ping_status

ping_status: "open" | "closed"

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

Whether or not the object can be pinged.


slug

slug: string

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

An alphanumeric identifier for the object unique to its type.


status

status: "publish" | "future" | "draft" | "pending" | "private"

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

A named status for the object.


terms?

optional terms: Record<string, TermEntity[]>

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


title

title: Rendered

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

The title for the object.


type

type: string

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

Type of Post for the object.


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