A WordPress-centric search engine for devs and theme authors



wp_update_attachment_metadata ›

Since2.1.0
Deprecatedn/a
apply_filters( 'wp_update_attachment_metadata', $data, $post->ID )
Parameters: (2)
  • (array) $data Array of updated attachment meta data.
    Required: Yes
  • (int) $attachment_id Attachment post ID.
    Required: Yes
Defined at:
Codex:

Filters the updated attachment meta data.





Source

if ( $data = apply_filters( 'wp_update_attachment_metadata', $data, $post->ID ) ) {