update_blog_details

Advertisement

Summery Summery

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

Syntax Syntax

update_blog_details( int $blog_id, array $details = array() )

Parameters Parameters

$blog_id

(Required) Blog ID.

$details

(Optional) Array of details keyed by blogs table field names.

Default value: array()

Return Return

(bool) True if update succeeds, false otherwise.

Source Source

File: wp-includes/ms-blogs.php

 *
 * @since MU (3.0.0)
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int   $blog_id Blog ID.
 * @param array $details Array of details keyed by blogs table field names.
 * @return bool True if update succeeds, false otherwise.
 */
function update_blog_details( $blog_id, $details = array() ) {
	global $wpdb;

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Advertisement

Leave a Reply