WPDev.one
Core Function
View Source on Trac ↗

insert_blog()

insert_blog( mixed $domain, mixed $path, mixed $site_id )

Store basic site info in the blogs table.

Parameters 3 required

Name / Type Description
$domain
string

The domain of the new site.

Required
$path
string

The path of the new site.

Required
$site_id
int

Unless you're running a multi-network install, be sure to set this value to 1.

Required

Return Value

((int)
| false) The ID of the new row

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/ms-deprecated.php
Advertisement