is_archived

Check if a particular blog is archived.

Description

(string) is_archived( (int) $id ); 

Returns (string)

Whether the blog is archived or not

Parameters (1)

0. $id (int)
The blog id

Usage

  1. if ( !function_exists( 'is_archived' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-blogs.php'; 
  3.  
  4. // The blog id 
  5. $id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = is_archived($id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-blogs.php  
  1. function is_archived( $id ) { 
  2. return get_blog_status($id, 'archived');