WordPress at a glance
filter is not described

wp_get_attachment_metadata filter-hook . WP 2.1.0

Filters the attachment meta data.


add_filter( 'wp_get_attachment_metadata', 'filter_function_name_7239', 10, 2 );
function filter_function_name_7239( $data, $attachment_id ){
	// filter...

	return $data;
Array of meta data for the given attachment, or false if the object does not exist.
Attachment post ID.

Where the hook is called

wp-includes/post.php 5555
return apply_filters( 'wp_get_attachment_metadata', $data, $post->ID );

Where the hook is used (in WP core)

Does not used.