akcjaod MU (3.0.0)
remove_user_from_blog
Opis — z kodu źródłowego
Fires before a user is removed from a site.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | ID of the user being removed. |
$blog_id | int | ID of the blog the user is being removed from. |
$reassign | int | ID of the user to whom to reassign posts. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'remove_user_from_blog', '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( 'remove_user_from_blog', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}