install_blog_defaults

Advertisement

Deprecated Deprecated

This function has been deprecated. MU instead.

Summery Summery

Set blog defaults.

Syntax Syntax

install_blog_defaults( int $blog_id, int $user_id )

Description Description

This function creates a row in the wp_blogs table.

Parameters Parameters

$blog_id

(int) (Required) Ignored in this function.

$user_id

(int) (Required)

Source Source

File: wp-includes/ms-deprecated.php

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

	_deprecated_function( __FUNCTION__, 'MU' );

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

	$suppress = $wpdb->suppress_errors();

	wp_install_defaults( $user_id );

	$wpdb->suppress_errors( $suppress );
}

Advertisement

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.