Used By
Used By | Description |
---|---|
wp-includes/ms-site.php: wp_prepare_site_data() | Prepares site data for insertion or update in the database. |
Fires when data should be validated for a site prior to inserting or updating in the database.
Plugins should amend the $errors
object via its WP_Error::add()
method.
(WP_Error) Error object to add validation errors to.
(array) Associative array of complete site data. See wp_insert_site() for the included data.
(WP_Site|null) The old site object if the data belongs to a site being updated, or null if it is a new site being inserted.
File: wp-includes/ms-site.php
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_validate_site_data