WordPress at a glance
action is not described

delete_blog action-hook . WP MU

Deprecated in 5.1.0. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.

Deprecated: 5.1.0

Fires before a site is deleted.

Usage

add_action( 'delete_blog', 'action_function_name_6532', 10, 2 );
function action_function_name_6532( $site_id, $drop ){
	// action...
}
$site_id(int)
The site ID.
$drop(true/false)
True if site's table should be dropped.
Default: false

Notes

  • Since MU (3.0.0)

Where the hook is called

wp_delete_site()
delete_blog
wpmu_delete_blog()
delete_blog
wp-includes/ms-site.php 235
do_action_deprecated( 'delete_blog', array( $old_site->id, true ), '5.1.0' );
wp-admin/includes/ms.php 100
do_action_deprecated( 'delete_blog', array( $blog_id, false ), '5.1.0' );

Where the hook is used (in WP core)

Does not used.