install_blog()安装一个新的博客

目录

描述

Install an empty blog.

Creates the new blog tables and options. If calling this function directly, be sure to use switch_to_blog() first, so that $wpdb points to the new blog.

install_blog() 描述

用法

<?php install_blog$blog_id$blog_title ); ?>

install_blog() 用法

参数

$blog_id

(int) (必填) The value returned by insert_blog().

默认值: None

$blog_title

(string) (可选) The title of the new site.

默认值: empty string

install_blog() 参数

历史

添加于 版本: MU

install_blog() 历史