delete_user

Advertisement

Summery Summery

Fires immediately before a user is deleted from the database.

Syntax Syntax

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

Parameters Parameters

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

$user

(WP_User) WP_User object of the user to delete.

Source Source

File: wp-admin/includes/user.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.