akcjaod 4.4.0
invite_user
Opis — z kodu źródłowego
Fires immediately after an existing user is invited to join the site, but before the notification is sent.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | The invited user's ID. |
$role | array | Array containing role information for the invited user. |
$newuser_key | string | The key of the invitation. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'invite_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( 'invite_user', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii