WordPress at a glance
action is not described

wp_validate_site_deletion action-hook . WP 5.1.0

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.


add_action( 'wp_validate_site_deletion', 'action_function_name_9155', 10, 2 );
function action_function_name_9155( $errors, $old_site ){
	// action...
Error object to add validation errors to.
The site object to be deleted.


Since 5.1.0 Introduced.

Where the hook is called

wp-includes/ms-site.php 228
do_action( 'wp_validate_site_deletion', $errors, $old_site );

Where the hook is used (in WP core)

Usage not found!