wp_update_site
wp_update_site ( $site_id, $data )
Parameters:- (int) site_id ID of the site that should be updated.
- (array) data Site data to update. See {@see} for the list of supported keys.
Returns:- (int|WP_Error) The updated site's ID on success, or error object on failure.
Defined at: - Introduced in WordPress: 5.1.0
- Deprecated in WordPress: —
Description
Updates a site in the database.