Core Function
View Source on Trac ↗ wp_get_attachment_metadata()
wp_get_attachment_metadata( mixed $attachment_id = 0, mixed $unfiltered = false ) Retrieves attachment metadata for attachment ID.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $attachment_id int | Attachment post ID. Defaults to global $post. |
| $unfiltered bool | Optional. If true, filters are not run. Default false. |
Return Value
((array)
(array | false) {
Attachment metadata. False on failure.
Function Information
Since Version
2.1.0
Source File
wp-includes/post.php
Advertisement