delete_blog
Like this:
Like Loading...
Appears in:
wordpress-4.0,
wordpress-4.4,
wordpress-4.8,
wordpress-4.9,
wordpress-4.9.4,
wordpress-4.9.5,
wordpress-4.9.6,
wordpress-4.9.7,
wordpress-4.9.8,
wordpress-5.0,
wordpress-5.0.1,
wordpress-5.0.2,
wordpress-5.0.3Hook Type: action
See hook in action
Displaying hooks found in version: wordpress-5.0.3
do_action('delete_blog') is found 1 times:
- /wp-admin/includes/ms.php line 80
*
* @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.
if ( ! empty( $users ) ) {
foreach ( $users as $user_id ) {
Like this:
Like Loading...
See this hook used in plugins: