wp_prepare_site_data ( $data, $defaults, $old_site = null )

  • (array) data Associative array of site data passed to the respective function. See {@see} for the possibly included data.
  • (array) defaults Site data defaults to parse $data against.
  • (WP_Site|null) old_site Optional. Old site object if an update, or null if an insertion. Default null.
  • (array|WP_Error) Site data ready for a database transaction, or WP_Error in case a validation error occurred.
Defined at:


Prepares site data for insertion or update in the database.

Related Functions

wp_normalize_site_data, wp_validate_site_data, wp_create_tag, wp_read_video_metadata, wp_reset_postdata

Top Google Results

User discussions

wpseek mobile