filtrod 4.9.0
network_admin_email_change_email
Opis — z kodu źródłowego
Filters the contents of the email notification sent when the network 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 network admin email address. - <code>###NEW_EMAIL###</code> The new network admin email address. - <code>###SITENAME###</code> The name of the network. - <code>###SITEURL###</code> The URL to the site. @type string $headers Headers. } |
$old_email | string | The old network admin email address. |
$new_email | string | The new network admin email address. |
$network_id | int | ID of the network. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'network_admin_email_change_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( 'network_admin_email_change_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}