WP HOOKS
filtrod 6.0.0

retrieve_password_notification_email

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

Opis — z kodu źródłowego

Filters the contents of the reset password notification email sent to the user.

Parametry

ParametrTypOpis
$defaultsarray{ The default notification email arguments. Used to build wp_mail(). @type string $to The intended recipient - user email address. @type string $subject The subject of the email. @type string $message The body of the email. @type string $headers The headers of the email. }
$keystringThe activation key.
$user_loginstringThe username for the user.
$user_data\WP_UserWP_User object.

Wywołanie

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

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

Popularne w tej kategorii