wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_update_attachment_metadata › WordPress Filter Hooks

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

Filters the updated attachment meta data.





Source

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