WordPress at Your Fingertips
filter is not described

wp_get_attachment_metadata filter-hook . WP 2.1.0

Filters the attachment meta data.

Usage

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

	return $data;
}
$data(array)
Array of meta data for the given attachment.
$attachment_id(int)
Attachment post ID.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

wp_get_attachment_metadata()
wp_get_attachment_metadata
wp-includes/post.php 6337
return apply_filters( 'wp_get_attachment_metadata', $data, $attachment_id );

Where in WP core the hook is used WordPress

Usage not found.