WP HOOKS
filtrod MU (3.0.0)

update_welcome_email

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

Opis — z kodu źródłowego

Filters the content of the welcome email sent to the site administrator after site activation.

Content should be formatted for transmission via wp_mail().

Parametry

ParametrTypOpis
$welcome_emailstringMessage body of the email.
$blog_idintSite ID.
$user_idintUser ID of the site administrator.
$passwordstringUser password, or "N/A" if the user account is not new.
$titlestringSite title.
$metaarraySignup meta data. By default, contains the requested privacy setting and lang_id.

Wywołanie

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

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