Filters the attachment meta data.
$dataarray$attachment_idintwp-includes/post.php:7132wp_get_attachment_metadata() * * @since 2.1.0 * * @param array $data Array of meta data for the given attachment. * @param int $attachment_id Attachment post ID. */ $data = apply_filters( 'wp_get_attachment_metadata', $data, $attachment_id ); if ( ! is_array( $data ) ) { return false; } if ( array_key_exists( 'sizes', $data ) && ! is_array( $data['sizes'] ) ) {Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.