This function has been deprecated. MU instead.

install_blog_defaults( int $blog_id, int $user_id )

Set blog defaults.


Description

This function creates a row in the wp_blogs table.


Parameters

$blog_id

(Required) Ignored in this function.

$user_id

(Required)


Source

File: wp-includes/ms-functions.php

function install_blog_defaults($blog_id, $user_id) {
	global $wpdb;

	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );

	$suppress = $wpdb->suppress_errors();

	wp_install_defaults($user_id);

	$wpdb->suppress_errors( $suppress );
}


Changelog

Changelog
Version Description
WP-MU Introduced. (3.0.0)