akcjaod 2.9.0
deleted_user
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
| Parametr | Typ | Opis |
|---|---|---|
$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. |
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
}
// 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