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

Fires immediately after a user is deleted from the database.


Parameters Parameters

$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.


Top ↑

Source Source

File: wp-admin/includes/user.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Added the $user parameter.
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.