WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/create empty blog

Contents

Description

Creates a new, empty blog.

Usage

<?php create_empty_blog$domain$path$weblog_title$site_id ?>

Parameters

$domain
(string) (required) Domain name for blog.
Default: None
$path
(string) (required) Path to the blog.
Default: None
$weblog_title
(string) (required) Title for blog.
Default: None
$site_id
(int) (optional) Site ID, if running multiple networks.
Default: 1

Returns

(integer) 
The ID of the newly created blog

Examples


Notes

Change Log

Since: 3.0.0

Source File

create_empty_blog() is located in wp-includes/ms-functions.php

See also

See also index of Function Reference and index of Template Tags.
This page is marked as incomplete. You can help Codex by expanding it.