WP HOOKS
filtrod MU (3.0.0)

wpmu_welcome_notification

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

Opis — z kodu źródłowego

Filters whether to bypass the welcome email sent to the site administrator after site activation.

Returning false disables the welcome email.

Parametry

ParametrTypOpis
$blog_idint | falseSite ID, or false to prevent the email from sending.
$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( 'wpmu_welcome_notification', 'twoja_funkcja', 10, 5 );

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