update_archived()WP 3.0.0

Updates 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.

update_archived() code WP 6.6.2

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