return false;
} $id =
(int) $id;
$user =
new WP_User( $id );
if ( !
$user->
exists() ) { return false;
} // Global super-administrators are protected, and cannot be deleted.
$_super_admins =
get_super_admins();
if ( in_array( $user->user_login,
$_super_admins, true
) ) { return false;
} /**
* Fires before a user is deleted from the network.
*
* @since MU (3.0.0)
* @since 5.5.0 Added the `$user` parameter.
*
* @param int $id ID of the user about to be deleted from the network.
* @param WP_User $user WP_User object of the user about to be deleted from the network.
*/