WordPress at a glance
function is not described

update_blog_details() WP 3.0.0

Update the details for a blog. Updates the blogs table for a given blog id.

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

No Hooks.

Return

true/false. True if update succeeds, false otherwise.

Usage

update_blog_details( $blog_id, $details );
$blog_id(int) (required)
Blog ID
$details(array)
Array of details keyed by blogs table field names.
Default: array()

Code of update blog details: wp-includes/ms-blogs.php WP 5.2.2

<?php
function update_blog_details( $blog_id, $details = array() ) {
	global $wpdb;

	if ( empty( $details ) ) {
		return false;
	}

	if ( is_object( $details ) ) {
		$details = get_object_vars( $details );
	}

	$site = wp_update_site( $blog_id, $details );

	if ( is_wp_error( $site ) ) {
		return false;
	}

	return true;
}