akcjaod 4.3.0
remove_user_role
Opis — z kodu źródłowego
Fires immediately after a role as been removed from a user.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | The user ID. |
$role | string | The removed role. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'remove_user_role', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'remove_user_role', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii