WordPress at a glance
function is not described

get_blog_status() WP 3.0.0

Get a blog details field.

  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.


true/false/String/null. $value


get_blog_status( $id, $pref );
$id(int) (required)
The blog id
$pref(string) (required)
A field name

Code of get blog status: wp-includes/ms-blogs.php WP 5.2.2

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 ) );