wp_update_attachment_metadata filter-hook . WP 2.1.0
Filters the updated attachment meta data.
Usage
add_filter( 'wp_update_attachment_metadata', 'filter_function_name_9843', 10, 2 ); function filter_function_name_9843( $data, $attachment_id ){ // filter... return $data; }
- $data(array)
- Array of updated attachment meta data.
- $attachment_id(int)
- Attachment post ID.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
wp_update_attachment_metadata
wp-includes/post.php 6138
$data = apply_filters( 'wp_update_attachment_metadata', $data, $post->ID );