filtrod 5.5.0
auto_plugin_theme_update_email
Opis — z kodu źródłowego
Filters the email sent following an automatic background update for plugins and themes.
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', 'mixed'. |
$successful_updates | array | A list of updates that succeeded. |
$failed_updates | array | A list of updates that failed. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'auto_plugin_theme_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_plugin_theme_update_email', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii