Filters the email sent following an automatic background update for plugins and themes.
Parameters
$emailarray
{ 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.}
$tostring
The email recipient. An array of emails can be returned, as handled by wp_mail().
$subjectstring
The email's subject.
$bodystring
The email message body.
$headersstring
Any email headers, defaults to no headers.
$typestring
The type of email being sent. Can be one of 'success', 'fail', 'mixed'.
1535* @type string$headers Any email headers, defaults to no headers.1536*}1537* @param string$type The type of email being sent. Can be one of 'success','fail','mixed'.1538* @param array$successful_updatesAlist of updates that succeeded.1539* @param array$failed_updatesAlist of updates that failed.1540*/1541$email=apply_filters('auto_plugin_theme_update_email',$email,$type,$successful_updates,$failed_updates);15421543$result=wp_mail($email['to'],wp_specialchars_decode($email['subject']),$email['body'],$email['headers']);15441545if($result){1546update_option('auto_plugin_theme_update_emails',$past_failure_emails);1547}
History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.