Saltar al contenido principal

Interface: WpMedia

Defined in: src/types/index.ts:1315

A WordPress media item (attachment).

Extends

Properties

_embedded?

optional _embedded?: WpEmbedded

Defined in: src/types/index.ts:1362

Embedded resources (author, post). Available when using _embed.


acf?

optional acf?: WpAcfFields

Defined in: src/types/index.ts:1360

ACF (Advanced Custom Fields) data. Available when using ACF plugin.


alt_text

alt_text: string

Defined in: src/types/index.ts:1354


author

author: number

Defined in: src/types/index.ts:1317


caption

caption: object

Defined in: src/types/index.ts:1355

rendered

rendered: string


date

date: string

Defined in: src/types/index.ts:1221

Inherited from

WpBaseEntity.date


date_gmt

date_gmt: string

Defined in: src/types/index.ts:1222

Inherited from

WpBaseEntity.date_gmt


description

description: object

Defined in: src/types/index.ts:1356

rendered

rendered: string


id

id: number

Defined in: src/types/index.ts:1220

Inherited from

WpBaseEntity.id


link: string

Defined in: src/types/index.ts:1227

Inherited from

WpBaseEntity.link


media_details

media_details: object

Defined in: src/types/index.ts:1320

file?

optional file?: string

filesize?

optional filesize?: number

File size in bytes.

height?

optional height?: number

image_meta?

optional image_meta?: object

Image metadata from EXIF data.

Index Signature

[key: string]: unknown

image_meta.aperture?

optional aperture?: string

image_meta.camera?

optional camera?: string

image_meta.caption?

optional caption?: string

image_meta.copyright?

optional copyright?: string

image_meta.created_timestamp?

optional created_timestamp?: string

image_meta.credit?

optional credit?: string

image_meta.focal_length?

optional focal_length?: string

image_meta.iso?

optional iso?: string

image_meta.orientation?

optional orientation?: string

image_meta.shutter_speed?

optional shutter_speed?: string

image_meta.title?

optional title?: string

sizes?

optional sizes?: Record<string, { file: string; filesize?: number; height: number; mime_type: string; source_url: string; width: number; }>

width?

optional width?: number


media_type

media_type: string

Defined in: src/types/index.ts:1318


meta

meta: Record<string, unknown>

Defined in: src/types/index.ts:1358


mime_type

mime_type: string

Defined in: src/types/index.ts:1319


modified

modified: string

Defined in: src/types/index.ts:1223

Inherited from

WpBaseEntity.modified


modified_gmt

modified_gmt: string

Defined in: src/types/index.ts:1224

Inherited from

WpBaseEntity.modified_gmt


post

post: number | null

Defined in: src/types/index.ts:1357


slug

slug: string

Defined in: src/types/index.ts:1225

Inherited from

WpBaseEntity.slug


source_url

source_url: string

Defined in: src/types/index.ts:1353


status

status: string

Defined in: src/types/index.ts:1226

Inherited from

WpBaseEntity.status


title

title: object

Defined in: src/types/index.ts:1316

rendered

rendered: string