On this page
do_action( 'wp_validate_site_deletion', WP_Error $errors, WP_Site $old_site )
Fires before a site should be deleted from the database.
Description
Plugins should amend the $errors object via its WP_Error::add() method. If any errors are present, the site will not be deleted.
Parameters
Source
File: wp-includes/ms-site.php. View all references
do_action( 'wp_validate_site_deletion', $errors, $old_site );
Related
Used By
| Used By | Description |
|---|---|
| wp_delete_site() wp-includes/ms-site.php | Deletes a site from the database. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_validate_site_deletion