install_blog_defaults( int $blog_id, int $user_id )
This function has been deprecated. MU instead.
Set blog defaults.
Description
This function creates a row in the wp_blogs table.
Parameters
- $blog_id
-
(int) (Required) Ignored in this function.
- $user_id
-
(int) (Required)
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 ); }
Changelog
Version | Description |
---|---|
MU (3.0.0) | MU (3.0.0) |
MU | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/install_blog_defaults