filtrod 4.9.0
site_admin_email_change_email
Opis — z kodu źródłowego
Filters the contents of the email notification sent when the site admin email address is changed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$email_change_email | array | { Used to build wp_mail(). @type string $to The intended recipient. @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>###OLD_EMAIL###</code> The old site admin email address. - <code>###NEW_EMAIL###</code> The new site admin email address. - <code>###SITENAME###</code> The name of the site. - <code>###SITEURL###</code> The URL to the site. @type string $headers Headers. } |
$old_email | string | The old site admin email address. |
$new_email | string | The new site admin email address. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'site_admin_email_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( 'site_admin_email_change_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii