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

In this article

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

VersionDescription
MU (3.0.0)Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.