W3cubDocs

/WordPress

update_archived( int $id, string $archived ): string

Updates the ‘archived’ status of a particular blog.

Parameters

$idintrequired
Blog ID.
$archivedstringrequired
The new status.

Return

string $archived

Source

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

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_archived