Skip to main content

Interface: PostSearchEntity

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

Interface for posts entities from the /wp/v2/search endpoint.

Extends​

Indexable​

[k: string]: unknown

Properties​

_embedded​

_embedded: object

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

author​

author: AuthorEntity[]

self​

self: PostEntity[]

wp:term​

wp:term: TermEntity[][]


author?​

optional author: AuthorEntity[]

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


id​

id: number

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

Unique identifier for the object.

Inherited from​

SearchObjectEntity.id


subtype​

subtype: string

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

Subtype of Search for the object.


terms?​

optional terms: Record<string, TermEntity[]>

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


title​

title: string

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

The title for the object.

Inherited from​

SearchObjectEntity.title


type​

type: "post" | "term" | "post-format"

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

Type of Search for the object.

Inherited from​

SearchObjectEntity.type


url​

url: string

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

URL to the object.

Inherited from​

SearchObjectEntity.url


yoast_head?​

optional yoast_head: null | string

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

Inherited from​

SearchObjectEntity.yoast_head


yoast_head_json?​

optional yoast_head_json: null | YoastJSON

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

Inherited from​

SearchObjectEntity.yoast_head_json