install_blog ( $blog_id, $blog_title = '' )

  • (int) blog_id The value returned by wp_insert_site().
  • (string) blog_title The title of the new site.
Defined at:
Change Log:
  • M: U


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.

Related Functions

insert_blog, install_blog_defaults, uninstall_plugin, install_dashboard, install_network

Top Google Results

User discussions

wpseek mobile