On this page
update_archived( int $id, string $archived ): string
Update the ‘archived’ status of a particular blog.
Parameters
$idint Required-
Blog ID.
$archivedstring Required-
The new status.
Return
string $archived
Source
File: wp-includes/ms-blogs.php. View all references
function update_archived( $id, $archived ) {
update_blog_status( $id, 'archived', $archived );
return $archived;
}
Related
Uses
| Uses | Description |
|---|---|
| update_blog_status() wp-includes/ms-blogs.php | Update a blog details field. |
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_archived