Filter hook 'auto_core_update_email'
in WP Core File wp-admin/includes/class-wp-automatic-updater.php at line 1139
Description
Filters the email sent following an automatic background core update. can be returned, as handled by wp_mail(). }
Occurrences
Filename |
Line Number |
wp-admin/includes/class-wp-automatic-updater.php |
1139 |
Parameters
Type |
Name |
Description |
array |
$email |
{ Array of email arguments that will be passed to wp_mail(). |
string |
$type |
The type of email being sent. Can be one of 'success', 'fail', 'manual', 'critical'. |
object |
$core_update |
The update offer that was attempted. |
mixed |
$result |
The result for the core update. Can be WP_Error. |
PHP Doc
/**
* Filters the email sent following an automatic background core update.
*
* @since 3.7.0
*
* @param array $email {
* 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.
* }
* @param string $type The type of email being sent. Can be one of
* 'success', 'fail', 'manual', 'critical'.
* @param object $core_update The update offer that was attempted.
* @param mixed $result The result for the core update. Can be WP_Error.
*/