Filters the generated attachment meta data.
$metadataarray
$attachment_idint
$contextstring
'create' when metadata was initially created for new attachment or 'update' when the metadata was updated.return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id, 'create' );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_generate_attachment_metadata