Skip to main content

Interface: CommentEntity

@headstartwp/core.CommentEntity

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

Hierarchy

Properties

author

author: number

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

Defined in

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


author_avatar_urls

author_avatar_urls: AvatarUrls

Avatar URLs for the object author.

Defined in

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


author_email

author_email: string

Email address for the object author.

Defined in

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


author_name

author_name: string

Display name for the object author.

Defined in

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


author_url

author_url: string

URL for the object author.

Defined in

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


content

content: Rendered

The content for the object.

Defined in

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


date

date: string

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

Defined in

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


date_gmt

date_gmt: string

The date the object was published, as GMT.

Defined in

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


id

id: number

Unique identifier for the object.

Defined in

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


link: string

URL to the object.

Defined in

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


meta

meta: Record<string, unknown>

Meta fields.

Defined in

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


parent

parent: number

The ID for the parent of the object.

Defined in

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


post

post: number

The ID of the associated post object.

Defined in

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


status

status: string

State of the object.

Defined in

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


type

type: "comment"

Type of Comment for the object.

Defined in

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


yoast_head

Optional yoast_head: null | string

Inherited from

Entity.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

Entity.yoast_head_json

Defined in

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