WP HOOKS
filtrod 5.6.0

invited_user_email

Args 4Plik wp-admin/user-new.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the contents of the email sent when an existing user is invited to join the site.

Parametry

ParametrTypOpis
$new_user_emailarray{ Used to build wp_mail(). @type string $to The email address of the invited user. @type string $subject The subject of the email. @type string $message The content of the email. @type string $headers Headers. }
$user_idintThe invited user's ID.
$rolearrayArray containing role information for the invited user.
$newuser_keystringThe key of the invitation.

Wywołanie

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

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

Popularne w tej kategorii