delete_user

SummerySummery

Fires immediately before a user is deleted from the database.

Syntax

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

ParametersParameters

$id

(int) ID of the user to delete.

$reassign

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

SourceSource

File: wp-admin/includes/user.php

ChangelogChangelog

Changelog
Version Description
2.0.0 Introduced.
Scroll to Top