update_archived() WordPress Function
The WordPress update_archived() function is used to update an archived post or page. This function takes two arguments: the post ID and the new post status. The post status can be 'publish', 'draft', 'pending', 'future', 'private', 'trash', or 'delete'.
update_archived( int $id, string $archived ) #
Update the ‘archived’ status of a particular blog.
Parameters
- $id
(int)(Required)Blog ID.
- $archived
(string)(Required)The new status.
Return
(string) $archived
Source
File: wp-includes/ms-blogs.php
function update_archived( $id, $archived ) { update_blog_status( $id, 'archived', $archived ); return $archived; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |