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