Filters the generated attachment meta data.
$metadataarray$attachment_idint$contextstringwp-admin/includes/image.php:185wp_update_image_subsizes()wp-admin/includes/image.php:750wp_generate_attachment_metadata() * * @param array $metadata An array of attachment meta data. * @param int $attachment_id Current attachment ID. * @param string $context Additional context. Can be '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' );} /** * Converts a fraction string to a decimal. * * @since 2.5.0Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.