Warning: This function has been deprecated. MU instead.

install_blog_defaults() WordPress Function

This function installs the default settings for a new WordPress blog. This includes the default theme, default plugins, and default settings for the WordPress admin area.

install_blog_defaults( int $blog_id, int $user_id ) #

Set blog defaults.


Description

This function creates a row in the wp_blogs table.


Top ↑

Parameters

$blog_id

(int)(Required)Ignored in this function.

$user_id

(int)(Required)


Top ↑

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 );
}


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)MU (3.0.0)
MUIntroduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.