Core Function
View Source on Trac ↗ wp_validate_site_data()
wp_validate_site_data( mixed $errors, mixed $data, mixed $old_site = null ) Validates data for a site prior to inserting or updating in the database.
Parameters 3 required
| Name / Type | Description |
|---|---|
| WP_Error | $errors Error object, passed by reference. Will contain validation errors if any occurred. Required |
| array | $data Associative array of complete site data. See {@see wp_insert_site()} for the included data. Required |
| mixed | (WP_Site | null) $old_site The old site object if the data belongs to a site being updated, or null if it is a new site being inserted. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
5.1.0
Source File
wp-includes/ms-site.php
Advertisement