install_dashboard in /wp-admin/includes/plugin-install.php
2027
Continue readingInstall 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.
2023
Continue readingInserts an array of strings into a file (.htaccess ), placing it between BEGIN and END markers. Replaces existing marked info. Retains surrounding data. Creates file if none exists.
2021
Continue readingStore 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.
2019
Continue reading