wppaste
WordPress

do_action_deprecated( 'delete_blog', int $site_id, bool $drop )

Since
MU (3.0.0)
Fires before a site is deleted.

Compatibility

Deprecated in WordPress 5.1.0. Kept for back-compatibility; avoid it in new code.

WordPress
since MU (3.0.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 table should be dropped. Default false.

Where this hook fires · 2

  • wp-admin/includes/ms.php:101wpmu_delete_blog()
  • wp-includes/ms-site.php:252wp_delete_site()

Source code

	 * @since MU (3.0.0)	 * @deprecated 5.1.0	 *	 * @param int  $site_id The site ID.	 * @param bool $drop    True if site's table should be dropped. Default false.	 */	do_action_deprecated( 'delete_blog', array( $old_site->id, true ), '5.1.0' ); 	/**	 * Fires when a site's uninitialization routine should be executed.	 *	 * @since 5.1.0	 *

Changelog

Introduced in MU (3.0.0). Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 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.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.