wp-admin/includes/class-wp-site-icon.php:118Inserts an attachment.
$attachmentarray$filestringintOne hook fires while WP_Site_Icon::insert_attachment() runs, in this order:
Filters the site icon attachment metadata.
public function insert_attachment( $attachment, $file ) { $attachment_id = wp_insert_attachment( $attachment, $file ); $metadata = wp_generate_attachment_metadata( $attachment_id, $file ); /** * Filters the site icon attachment metadata. * * @since 4.3.0 * * @see wp_generate_attachment_metadata() * * @param array $metadata Attachment metadata. */ $metadata = apply_filters( 'site_icon_attachment_metadata', $metadata ); wp_update_attachment_metadata( $attachment_id, $metadata ); return $attachment_id; }Introduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/class-wp-site-icon.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.