Core Function
View Source on Trac ↗ wp_update_site()
wp_update_site( mixed $site_id, array $data ) Updates a site in the database.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $site_id int | ID of the site that should be updated. Required |
| $data array | Site data to update. See {@see wp_insert_site()} for the list of supported keys. Required |
Return Value
((int)
| WP_Error) The updated site's ID on success, or error object on failure.
Function Information
Since Version
5.1.0
Source File
wp-includes/ms-site.php
Advertisement