wp_validate_site_deletion WordPress Action Hook
The wp_validate_site_deletion hook is used to validate a site deletion request. This hook is called before a site is deleted, and can be used to cancel the deletion or to perform any necessary cleanup tasks.
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
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |