wp_validate_site_data ( $errors, $data, $old_site = null )

  • (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:


Validates data for a site prior to inserting or updating in the database.

Related Functions

wp_normalize_site_data, wp_prepare_site_data, wp_validate_redirect, _wp_translate_postdata, update_site_meta

Top Google Results

User discussions

wpseek mobile