On this page
do_action( 'deleted_user', int $id, int|null $reassign, WP_User $user )
Fires immediately after a user is deleted from the database.
Parameters
More Information
The deleted_user action/hook can be used to perform additional actions after a user is deleted. For example, you can delete rows from custom tables created by a plugin.
This hook runs after a user is deleted. The hook delete_user (delete vs deleted) runs before a user is deleted. Choose the appropriate hook for your needs. If you need access to user meta or fields from the user table, use delete_user.
Source
File: wp-admin/includes/user.php. View all references
do_action( 'deleted_user', $id, $reassign, $user );
Related
Used By
| Used By | Description |
|---|---|
| wpmu_delete_user() wp-admin/includes/ms.php | Delete a user from the network and remove from all sites. |
| wp_delete_user() wp-admin/includes/user.php | Remove user and optionally reassign posts and links to another user. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/deleted_user