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.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

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.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

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 6.9.10 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.