Fires before a site should be deleted from the database.
Plugins should amend the $errors object via its WP_Error::add() method. If any errors are present, the site will not be deleted.
do_action( 'wp_validate_site_deletion', $errors, $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_deletion