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.


Top ↑

Return

(string) Whether the blog is archived or not.


Top ↑

Source

File: wp-includes/ms-blogs.php

function is_archived( $id ) {
	return get_blog_status( $id, 'archived' );
}


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.