Codex

WPMU Functions/wpmu create blog

Contents

Description

Creates a new blog.

Parameters

$domain
(string) (required) The domain of the new blog.
Default: None
$path
(string) (required) The path of the new blog.
Default: None
$title
(string) (required) The title of the new blog.
Default: None
$user_id
(integer) (required) The user id of the user account who will be the blog admin.
Default: None
$meta
(object) (optional) Other meta information.
Default: [blank string]
$site_id
(string) (optional) The site_id of the blog to be created.
Default: 1

Return Values

(integer) 
id of the blog created.

Usage

<?php wpmu_create_blog($domain$path$title$user_id$meta$site_id); ?>