Description
Store basic site info in the blogs table.
This function creates a row in the wp_blogs table and returns the new blog's ID. It is the first step in creating a new blog.
Usage
<?php insert_blog( $domain, $path, $site_id ); ?>
Parameters
- $domain
- (string) (required) The domain of the new site.
- Default: None
- $path
- (string) (required) The path of the new site.
- Default: None
- $site_id
- (int) (required) Unless you're running a multi-network install, be sure to set this value to 1.
- Default: None
Return Values
- (int)
- The ID of the new row
Change Log
Since: MU
Source File
insert_blog() is located in wp-includes/ms-functions.php