WP HOOKS
filtrod 4.9.0

wp_new_user_notification_email_admin

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

Opis — z kodu źródłowego

Filters the contents of the new user notification email sent to the site admin.

Parametry

ParametrTypOpis
$wp_new_user_notification_email_adminarray{ Used to build wp_mail(). @type string $to The intended recipient - site admin 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. }
$user\WP_UserUser object for new user.
$blognamestringThe site title.

Wywołanie

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

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

Popularne w tej kategorii