delete_blog

delete_blog

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.0.3

do_action('delete_blog') is found 1 times:

  • /wp-admin/includes/ms.php line 80
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    *
     * @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 ) {

See this hook used in plugins: