WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_validate_site_deletion

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/ms-site.php do_action 235 /**
* 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.
*
* @since 5.1.0
*
* @param WP_Error $errors Error object to add validation errors to.
* @param WP_Site $old_site The site object to be deleted.
*/

Hook Parameters

Parameter Type Name Description
WP_Error $errors Error object to add validation errors to.
WP_Site $old_site The site object to be deleted.