wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_validate_site_data › Działania WordPress Hooks

Od5.1.0
Przestarzałyn/a
› do_action( 'wp_validate_site_data', $errors, $data, $old_site )
Parametry: (3)
  • () errors Error object to add validation errors to.
    Wymagane: Tak
  • () data Associative array of complete site data. See {@see \wp_insert_site()} for the included data.
    Wymagane: Tak
  • () 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.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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