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 wp_insert_site()} 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:

Description

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, wp_validate_boolean

Top Google Results

User discussions

wpseek mobile