WP HOOKS
filtrod 4.9.0

network_admin_email_change_email

Args 4Plik wp-includes/ms-functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the contents of the email notification sent when the network admin email address is changed.

Parametry

ParametrTypOpis
$email_change_emailarray{ 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_emailstringThe old network admin email address.
$new_emailstringThe new network admin email address.
$network_idintID 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
}