A WordPress-centric search engine for devs and theme authors



wp_get_attachment_metadata ›

Since2.1.0
Deprecatedn/a
apply_filters( 'wp_get_attachment_metadata', $data, $post->ID )
Parameters: (2)
  • (array|bool) $data Array of meta data for the given attachment, or false if the object does not exist.
    Required: Yes
  • (int) $attachment_id Attachment post ID.
    Required: Yes
Defined at:
Codex:

Filters the attachment meta data.





Source

return apply_filters( 'wp_get_attachment_metadata', $data, $post->ID );