do_action_deprecated( 'delete_blog', int $site_id, bool $drop )
- Since
- MU (3.0.0)
Fires before a site is deleted.
Parameters
$site_idint- The site ID.
$dropbool- True if site's table should be dropped. Default false.
Fired at · 2
wp-admin/includes/ms.php:101wpmu_delete_blog()wp-includes/ms-site.php:252wp_delete_site()
Source
View on Trac ↗View on GitHub ↗
246 * @since MU (3.0.0)247 * @deprecated 5.1.0248 *249 * @param int $site_id The site ID.250 * @param bool $drop True if site's table should be dropped. Default false.251 */252 do_action_deprecated( 'delete_blog', array( $old_site->id, true ), '5.1.0' );253 254 /**255 * Fires when a site's uninitialization routine should be executed.256 *257 * @since 5.1.0258 *
History
Introduced in MU (3.0.0). Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 5 parsed releases.
5.1.0
Deprecated.from the docblock
MU (3.0.0)
MU (3.0.0)from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 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.