wp_validate_site_data
wp_validate_site_data ( $errors, $data, $old_site = null )
Parameters:- (WP_Error) errors Error object, passed by reference. Will contain validation errors if any occurred.
- (array) data Associative array of complete site data. See {@see} for the included data.
- (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.
Defined at: - Introduced in WordPress: 5.1.0
- Deprecated in WordPress: —
Description
Validates data for a site prior to inserting or updating in the database.