wp_prepare_site_data


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

Parameters:
  • (array) $data Associative array of site data passed to the respective function. See {@see wp_insert_site()} 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.
Returns:
  • (array|WP_Error) Site data ready for a database transaction, or WP_Error in case a validation error occurred.
Defined at:

Description

Prepares site data for insertion or update in the database.

Related Functions

wp_normalize_site_data, wp_validate_site_data, _wp_json_prepare_data, wp_read_video_metadata, wp_create_tag

Top Google Results

User discussions

wpseek mobile