filtrod 5.6.0
invited_user_email
Opis — z kodu źródłowego
Filters the contents of the email sent when an existing user is invited to join the site.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$new_user_email | array | { Used to build wp_mail(). @type string $to The email address of the invited user. @type string $subject The subject of the email. @type string $message The content of the email. @type string $headers Headers. } |
$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_filter( 'invited_user_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'invited_user_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii