filtrod 4.9.0
wp_new_user_notification_email
Opis — z kodu źródłowego
Filters the contents of the new user notification email sent to the new user.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$wp_new_user_notification_email | array | { Used to build wp_mail(). @type string $to The intended recipient - New user email address. @type string $subject The subject of the email. @type string $message The body of the email. @type string $headers The headers of the email. } |
$user | \WP_User | User object for new user. |
$blogname | string | The site title. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_new_user_notification_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_new_user_notification_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii