WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about delete_user

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/user.php do_action 368 /**
* Fires immediately before a user is deleted from the database.
*
* @since 2.0.0
* @since 5.5.0 Added the `$user` parameter.
*
* @param int $id ID of the user to delete.
* @param int|null $reassign ID of the user to reassign posts and links to.
* Default null, for no reassignment.
* @param WP_User $user WP_User object of the user to delete.
*/

Hook Parameters

Parameter Type Name Description
int $id ID of the user to delete.
int|null $reassign ID of the user to reassign posts and links to.
WP_User $user WP_User object of the user to delete.