filtrod 4.3.0
password_change_email
Opis — z kodu źródłowego
Filters the contents of the email sent when the user's password is changed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pass_change_email | array | { Used to build wp_mail(). @type string $to The intended recipients. Add emails in a comma separated string. @type string $subject The subject of the email. @type string $message The content of the email. The following strings have a special meaning and will get replaced dynamically: - <code>###USERNAME###</code> The current user's username. - <code>###ADMIN_EMAIL###</code> The admin email in case this was unexpected. - <code>###EMAIL###</code> The user's email address. - <code>###SITENAME###</code> The name of the site. - <code>###SITEURL###</code> The URL to the site. @type string $headers Headers. Add headers in a newline (\r\n) separated string. } |
$user | array | The original user array. |
$userdata | array | The updated user array. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'password_change_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( 'password_change_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii