Skip to main content

Interface: PostSearchEntity

@headstartwp/core.PostSearchEntity

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

Hierarchy

Properties

_embedded

_embedded: Object

Type declaration

NameType
authorAuthorEntity[]
selfPostEntity[]
wp:termTermEntity[][]

Defined in

packages/core/src/data/types/entities.ts:689


author

Optional author: AuthorEntity[]

Defined in

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


id

id: number

Unique identifier for the object.

Inherited from

SearchObjectEntity.id

Defined in

packages/core/src/data/types/entities.ts:658


subtype

subtype: string

Subtype of Search for the object.

Defined in

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


terms

Optional terms: Record<string, TermEntity[]>

Defined in

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


title

title: string

The title for the object.

Inherited from

SearchObjectEntity.title

Defined in

packages/core/src/data/types/entities.ts:668


type

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

Type of Search for the object.

Inherited from

SearchObjectEntity.type

Defined in

packages/core/src/data/types/entities.ts:673


url

url: string

URL to the object.

Inherited from

SearchObjectEntity.url

Defined in

packages/core/src/data/types/entities.ts:663


yoast_head

Optional yoast_head: null | string

Inherited from

SearchObjectEntity.yoast_head

Defined in

packages/core/src/data/types/entities.ts:14


yoast_head_json

Optional yoast_head_json: null | Record<string, any>

Inherited from

SearchObjectEntity.yoast_head_json

Defined in

packages/core/src/data/types/entities.ts:13