首页 WordPress函数大全 install_blog()

install_blog()

2020-05-02 / 3827阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated.

install_blog( int $blog_id, string $blog_title = '' )

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.

参数

$blog_id

(int)
(Required)
The value returned by wp_insert_site().

$blog_title

(string)
(Optional)
The title of the new site.

Default value: ''

大家谈论
    我的见解