WordPress at a glance
action is not described

deleted_user action-hook . WP 2.9.0

Fires immediately after a user is deleted from the database.

Usage

add_action( 'deleted_user', 'action_function_name_1844', 10, 3 );
function action_function_name_1844( $id, $reassign, $user ){
	// action...
}
$id(int)
ID of the deleted user.
$reassign(int/null)
ID of the user to reassign posts and links to.
Default: null, for no reassignment
$user(WP_User)
WP_User object of the deleted user.

Список изменений

С версии 2.9.0 Введена.
С версии 5.5.0 Added the $user parameter.

Где вызывается хук

wp_delete_user()
deleted_user
wpmu_delete_user()
deleted_user
wp-admin/includes/user.php 447
do_action( 'deleted_user', $id, $reassign, $user );
wp-admin/includes/ms.php 205
do_action( 'deleted_user', $id, null, $user );

Где используется хук в ядре WordPress

wp-includes/ms-default-filters.php 34
add_action( 'deleted_user', 'wp_delete_signup_on_user_delete', 10, 3 );
wp-includes/ms-default-filters.php 88
add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 );