WP HOOKS
filtrod 4.3.0

email_change_email

Args 3Plik wp-includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the contents of the email sent when the user's email is changed.

Parametry

ParametrTypOpis
$email_change_emailarray{ Used to build wp_mail(). @type string $to The intended recipients. @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>###NEW_EMAIL###</code> The new email address. - <code>###EMAIL###</code> The old email address. - <code>###SITENAME###</code> The name of the site. - <code>###SITEURL###</code> The URL to the site. @type string $headers Headers. }
$userarrayThe original user array.
$userdataarrayThe updated user array.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'email_change_email', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii