get_blog_status( int $id, string $pref )

Get a blog details field.


Parameters

$id

(Required) The blog id

$pref

(Required) A field name


Return

(bool|string|null) $value


Source

File: wp-includes/ms-blogs.php

function get_blog_status( $id, $pref ) {
	global $wpdb;

	$details = get_site( $id );
	if ( $details )
		return $details->$pref;

	return $wpdb->get_var( $wpdb->prepare("SELECT %s FROM {$wpdb->blogs} WHERE blog_id = %d", $pref, $id) );
}


Changelog

Changelog
Version Description
WP-MU Introduced. (3.0.0)