do_action_deprecated( 'deleted_blog', int $site_id, bool $drop )
- Since
- 4.8.0
Fires after the site is deleted from the network.
Compatibility
Deprecated in WordPress 5.1.0. Kept for back-compatibility; avoid it in new code.
- WordPress
- since 4.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$site_idint- The site ID.
$dropbool- True if site's tables should be dropped. Default false.
Where this hook fires · 2
wp-admin/includes/ms.php:120wpmu_delete_blog()wp-includes/ms-site.php:294wp_delete_site()
Source code
<?php * @since 4.8.0 * @deprecated 5.1.0 * * @param int $site_id The site ID. * @param bool $drop True if site's tables should be dropped. Default false. */ do_action_deprecated( 'deleted_blog', array( $old_site->id, true ), '5.1.0' ); return $old_site;} /** * Retrieves site data given a site ID or site object.Changelog
Introduced in 4.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.1.0
Deprecated.from the docblock
4.8.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.