Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_validate_site_data ›

Seit5.1.0
Veraltetn/v
do_action( 'wp_validate_site_data', $errors, $data, $old_site )
Parameter: (3)
  • (WP_Error) $errors Error object to add validation errors to.
    Erforderlich: Ja
  • (array) $data Associative array of complete site data. See {@see wp_insert_site()} for the included data.
    Erforderlich: Ja
  • (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.
    Erforderlich: Ja
Definiert in:
Codex:

Fires when data should be validated for a site prior to inserting or updating in the database.

Plugins should amend the $errors object via its WP_Error::add() method.





Quellcode

do_action( 'wp_validate_site_data', $errors, $data, $old_site );