WordPress at a glance
function is not described

update_archived() WP 3.0.0

Update the 'archived' status of a particular blog.

No Hooks.

Return

String. $archived

Usage

update_archived( $id, $archived );
$id(int) (required)
Blog ID.
$archived(string) (required)
The new status.

Changelog

Since 3.0.0 Introduced.

Code of update_archived() WP 5.5.3

<?php
function update_archived( $id, $archived ) {
	update_blog_status( $id, 'archived', $archived );
	return $archived;
}