WP HOOKS
akcjaod 2.0.0

delete_user

Args 3Plik wp-admin/includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately before a user is deleted from the site.

Note that on a Multisite installation the user only gets removed from the site and does not get deleted from the database.

Parametry

ParametrTypOpis
$idintID of the user to delete.
$reassignint | nullID of the user to reassign posts and links to. Default null, for no reassignment.
$user\WP_UserWP_User object of the user to delete.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'delete_user', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii