[wp-trac] [WordPress Trac] #41333: Implement `wp_install_site()` and `wp_uninstall_site()`
WordPress Trac
noreply at wordpress.org
Fri Jul 14 19:38:34 UTC 2017
#41333: Implement `wp_install_site()` and `wp_uninstall_site()`
--------------------------------+----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version:
Severity: normal | Keywords: 2nd-opinion
Focuses: multisite |
--------------------------------+----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41333>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list