filtrod 5.6.0
send_new_site_email
Opis — z kodu źródłowego
Filters whether to send an email to the Multisite network administrator when a new site is created.
Return false to disable sending the email.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$send | bool | Whether to send the email. |
$site | \WP_Site | Site object of the new site. |
$user | \WP_User | User object of the administrator of the new site. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'send_new_site_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'send_new_site_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}