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?
optionalacf?: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
date_gmt
date_gmt:
string
Defined in: src/types/index.ts:1222
Inherited from
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
link
link:
string
Defined in: src/types/index.ts:1227
Inherited from
media_details
media_details:
object
Defined in: src/types/index.ts:1320
file?
optionalfile?:string
filesize?
optionalfilesize?:number
File size in bytes.
height?
optionalheight?:number
image_meta?
optionalimage_meta?:object
Image metadata from EXIF data.
Index Signature
[key: string]: unknown
image_meta.aperture?
optionalaperture?:string
image_meta.camera?
optionalcamera?:string
image_meta.caption?
optionalcaption?:string
image_meta.copyright?
optionalcopyright?:string
image_meta.created_timestamp?
optionalcreated_timestamp?:string
image_meta.credit?
optionalcredit?:string
image_meta.focal_length?
optionalfocal_length?:string
image_meta.iso?
optionaliso?:string
image_meta.orientation?
optionalorientation?:string
image_meta.shutter_speed?
optionalshutter_speed?:string
image_meta.title?
optionaltitle?:string
sizes?
optionalsizes?:Record<string, {file:string;filesize?:number;height:number;mime_type:string;source_url:string;width:number; }>
width?
optionalwidth?: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
modified_gmt
modified_gmt:
string
Defined in: src/types/index.ts:1224
Inherited from
post
post:
number|null
Defined in: src/types/index.ts:1357
slug
slug:
string
Defined in: src/types/index.ts:1225
Inherited from
source_url
source_url:
string
Defined in: src/types/index.ts:1353
status
status:
string
Defined in: src/types/index.ts:1226
Inherited from
title
title:
object
Defined in: src/types/index.ts:1316
rendered
rendered:
string