Skip to main content

Interface: CommentEntity

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

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

Extends

Indexable

[k: string]: unknown

Properties

author

author: number

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

The ID of the user object, if author was a user.


author_avatar_urls

author_avatar_urls: AvatarUrls

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

Avatar URLs for the object author.


author_email

author_email: string

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

Email address for the object author.


author_name

author_name: string

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

Display name for the object author.


author_url

author_url: string

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

URL for the object author.


content

content: Rendered

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

The content for the object.


date

date: string

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

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:591

The date the object was published, as GMT.


id

id: number

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

Unique identifier for the object.


link: string

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

URL to the object.


meta

meta: Record<string, unknown>

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

Meta fields.


parent

parent: number

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

The ID for the parent of the object.


post

post: number

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

The ID of the associated post object.


status

status: string

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

State of the object.


type

type: "comment"

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

Type of Comment 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