filtrod 3.7.0
auto_core_update_email
Opis — z kodu źródłowego
Filters the email sent following an automatic background core update.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$email | array | { Array of email arguments that will be passed to wp_mail(). @type string $to The email recipient. An array of emails can be returned, as handled by wp_mail(). @type string $subject The email's subject. @type string $body The email message body. @type string $headers Any email headers, defaults to no headers. } |
$type | string | The type of email being sent. Can be one of 'success', 'fail', 'manual', 'critical'. |
$core_update | object | The update offer that was attempted. |
$result | mixed | The result for the core update. Can be WP_Error. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'auto_core_update_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'auto_core_update_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii