Interface: PostSearchEntity
@headstartwp/core.PostSearchEntity
Interface for posts entities from the /wp/v2/search endpoint.
Hierarchy
↳
PostSearchEntity
Properties
_embedded
• _embedded: Object
Type declaration
Name | Type |
---|---|
author | AuthorEntity [] |
self | PostEntity [] |
wp:term | TermEntity [][] |
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
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
Defined in
packages/core/src/data/types/entities.ts:668
type
• type: "post"
| "term"
| "post-format"
Type of Search for the object.
Inherited from
Defined in
packages/core/src/data/types/entities.ts:673
url
• url: string
URL to the object.
Inherited from
Defined in
packages/core/src/data/types/entities.ts:663
yoast_head
• Optional
yoast_head: null
| string
Inherited from
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