update_blog_details() – Update the details for a blog. Updates the blogs table for a given blog id.

You appear to be a bot. Output may be restricted

Description

Updates the details for a blog and the blogs table for a given blog ID.

Usage

$bool = update_blog_details( $blog_id, $details );

Parameters

$blog_id
( int ) required – Blog ID.
$details
( array ) optional – Array of details keyed by blogs table field names.

Returns

bool True if update succeeds, false otherwise.

Source

File name: wordpress/wp-includes/ms-blogs.php
Lines:

1 to 19 of 19
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;
}
 

 View on GitHub View on Trac