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.
$errorsWP_Error
$dataarray
$old_siteWP_Site|null
do_action( 'wp_validate_site_data', $errors, $data, $old_site );
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_validate_site_data