filtrod 5.6.0
wp_installed_email
Opis — z kodu źródłowego
Filters the contents of the email sent to the site administrator when WordPress is installed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$installed_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. } |
$user | \WP_User | The site administrator user object. |
$blog_title | string | The site title. |
$blog_url | string | The site URL. |
$password | string | The site administrator's password. Note that a placeholder message is usually passed instead of the user's actual password. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_installed_email', '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( 'wp_installed_email', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii