Core Function
View Source on Trac ↗ wp_get_attachment_id3_keys()
wp_get_attachment_id3_keys( mixed $attachment, mixed $context = 'display' ) Returns useful keys to use to lookup data from an attachment's stored metadata.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attachment WP_Post | The current attachment, provided for context. Required |
| $context string | Optional. The context. Accepts 'edit', 'display'. Default 'display'. |
Return Value
(string[])
Key/value pairs of field keys to labels.
Function Information
Since Version
3.9.0
Source File
wp-includes/media.php
Advertisement