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

$errorsWP_Error
Error object to add validation errors to.
$old_siteWP_Site
The site object to be deleted.

Source

do_action( 'wp_validate_site_deletion', $errors, $old_site );

Changelog

VersionDescription
5.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.