W3cubDocs

/WordPress

is_archived( int $id ): string

Checks if a particular blog is archived.

Parameters

$idintrequired
Blog ID.

Return

string Whether the blog is archived or not.

Source

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

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_archived