is_archived

The timeline below displays how wordpress function is_archived has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Checks if a particular blog is archived.
 *
 * @since MU (3.0.0)
 *
 * @param int $id Blog ID.
 * @return string Whether the blog is archived or not.
 */
function is_archived($id)
{
    return get_blog_status($id, 'archived');
}

WordPress Version: 5.3

/**
 * Check if a particular blog is archived.
 *
 * @since MU (3.0.0)
 *
 * @param int $id Blog ID.
 * @return string Whether the blog is archived or not.
 */
function is_archived($id)
{
    return get_blog_status($id, 'archived');
}

WordPress Version: 4.9

/**
 * Check if a particular blog is archived.
 *
 * @since MU (3.0.0)
 *
 * @param int $id The blog id
 * @return string Whether the blog is archived or not
 */
function is_archived($id)
{
    return get_blog_status($id, 'archived');
}

WordPress Version: 3.7

/**
 * Check if a particular blog is archived.
 *
 * @since MU
 *
 * @param int $id The blog id
 * @return string Whether the blog is archived or not
 */
function is_archived($id)
{
    return get_blog_status($id, 'archived');
}