insert_blog()添加一个新博客

目录

描述

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.

insert_blog() 描述

用法

<?php insert_blog$domain$path$site_id ); ?>

insert_blog() 用法

参数

$domain

(string) (必填) The domain of the new site.

默认值: None

$path

(string) (必填) The path of the new site.

默认值: None

$site_id

(int) (必填) Unless you're running a multi-network install, be sure to set this value to 1.

默认值: None

insert_blog() 参数

返回值

(int

The ID of the new row

insert_blog() 返回值

历史

添加于 版本: MU

insert_blog() 历史