wp_uninitialize_site
wp_uninitialize_site ( $site_id )
Parameters:- (int|WP_Site) site_id Site ID or object.
Returns:- (true|WP_Error) True on success, or error object on failure.
Defined at: - Introduced in WordPress: 5.1.0
- Deprecated in WordPress: —
Description
Runs the uninitialization routine for a given site.This process includes dropping the site's database tables and deleting its uploads directory.