wphooks.info - delete_blog

delete_blog

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-admin/includes/ms.php:
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
	$blog = get_site( $blog_id );
	/**
	 * Fires before a site is deleted.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param int  $blog_id The site ID.
	 * @param bool $drop    True if site's table should be dropped. Default is false.
	 */
	do_action( 'delete_blog', $blog_id, $drop );

	$users = get_users(
		array(
			'blog_id' => $blog_id,
			'fields'  => 'ids',
		)
	);

	// Remove users from this blog.