filtrod MU (3.0.0)
wpmu_welcome_notification
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
| Parametr | Typ | Opis |
|---|---|---|
$blog_id | int | false | Site ID, or false to prevent the email from sending. |
$user_id | int | User ID of the site administrator. |
$password | string | User password, or "N/A" if the user account is not new. |
$title | string | Site title. |
$meta | array | Signup 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
}
// 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
}