WP HOOKS
akcjaod 2.9.0

deleted_user

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

Opis — z kodu źródłowego

Fires immediately after a user is deleted from the site.

Note that on a Multisite installation the user may not have been deleted from the database depending on whether wp_delete_user() or wpmu_delete_user() was called.

Parametry

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

Wywołanie

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

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

Popularne w tej kategorii