filtrod 5.6.0
new_site_email
Opis — z kodu źródłowego
Filters the content of the email sent to the Multisite network administrator when a new site is created.
Content should be formatted for transmission via wp_mail().
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$new_site_email | array | { Used to build wp_mail(). @type string $to The email address of the recipient. @type string $subject The subject of the email. @type string $message The content of the email. @type string $headers Headers. } |
$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( '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( 'new_site_email', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}