do_action( 'delete_user', int $id, int|null $reassign, WP_User $user )

Fires immediately before a user is deleted from the database.


Parameters

$id

ID of the user to delete.

$reassign

ID of the user to reassign posts and links to. Default null, for no reassignment.

$user

WP_User object of the user to delete.


Source

File: wp-admin/includes/user.php

View on GitHub



Changelog

Changelog
Version Description
WP-5.5.0 Added the $user parameter.
WP-2.0.0 Introduced.