WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about deleted_user

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/ms.php do_action 210 /**
* 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.
*/
wp-admin/includes/user.php do_action 447 /**
* Fires immediately after a user is deleted from the database.
*
* @since 2.9.0
* @since 5.5.0 Added the `$user` parameter.
*
* @param int $id ID of the deleted user.
* @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 deleted user.
*/

Hook Parameters

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