A WordPress-centric search engine for devs and theme authors



wp_generate_attachment_metadata ›

Since2.1.0
Deprecatedn/a
apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id )
Parameters: (2)
  • (array) $metadata An array of attachment meta data.
    Required: Yes
  • (int) $attachment_id Current attachment ID.
    Required: Yes
Defined at:
Codex:

Filters the generated attachment meta data.





Source

return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id );