filtrod 6.0.0
retrieve_password_notification_email
Opis — z kodu źródłowego
Filters the contents of the reset password notification email sent to the user.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$defaults | array | { The default notification email arguments. Used to build wp_mail(). @type string $to The intended recipient - 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. } |
$key | string | The activation key. |
$user_login | string | The username for the user. |
$user_data | \WP_User | WP_User object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'retrieve_password_notification_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( 'retrieve_password_notification_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii