is_archived() WordPress Function
The is_archived() function is used to check if a post is archived.
is_archived( int $id ) #
Check if a particular blog is archived.
Parameters
- $id
(int)(Required)Blog ID.
Return
(string) Whether the blog is archived or not.
Source
File: wp-includes/ms-blogs.php
function is_archived( $id ) {
return get_blog_status( $id, 'archived' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |