install_blog
- install_blog is deprecated since version 5.1.0!
install_blog ( $blog_id, $blog_title = '' )
Parameters:- (int) blog_id The value returned by wp_insert_site().
- (string) blog_title The title of the new site.
Defined at:Change Log: - Introduced in WordPress: —
- Deprecated in WordPress: 5.1.0
Description
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.