WPDev.one
Core Function
View Source on Trac ↗

create_empty_blog()

create_empty_blog( mixed $domain, mixed $path, mixed $weblog_title, mixed $site_id = 1 )

Create an empty blog.

Parameters 3 required

Name / Type Description
$domain
string

The new blog's domain.

Required
$path
string

The new blog's path.

Required
$weblog_title
string

The new blog's title.

Required
$site_id
int

Optional. Defaults to 1.

Return Value

((string)
| int) The ID of the newly created blog

Function Information

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