﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
41333	Implement `wp_initialize_site()` and `wp_uninitialize_site()`	flixos90	flixos90	"As summarized in https://core.trac.wordpress.org/ticket/40364#comment:14, we'd like to have solid functions for installing a site in a multisite network as well as uninstalling it.

These functions should only take care of the ""site-level"" part of things, like:

* creating/dropping database tables
* populating options
* setting up initial content

The idea is to only be required to call `wp_insert_site()` and then `wp_install_site()` to get a new site set up.

Before we start working on the two functions, we should discuss what exactly it needs to do. This will have to match what currently happens spread out between `wpmu_create_blog()` and another function it calls, `install_blog()`. We should aim to make this consistent and also think about ways to enhance these functions and the functions they use, for example by providing filters to adjust some of these defaults.

This will be a rather comprehensive task, so it does not necessarily need to go in at a similar time as the changes from #40364. We should probably even wait to start it until those changes have been completed. This ticket should just be on the horizon for now, I'd say."	enhancement	closed	normal	5.1	Networks and Sites		normal	fixed	ms-roadmap, needs-patch		multisite
