1. 首页
  2. WordPress钩子手册

auto_core_update_email

apply_filters( ‘auto_core_update_email’, array $email, string $type, object $core_update, mixed $result )

过滤器::过滤自动后台核心更新后发送的电子邮件。
Filter Hook: Filters the email sent following an automatic background core update.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$email (array) 将传递给wp_mail()的电子邮件参数数组到’(字符串)电子邮件收件人。可以返回一组电子邮件,由wp_mail()处理。
‘subject'(string) The email’s subject. ‘body’(string) The email message body. “headers”(字符串)任何电子邮件标题,默认为无标题。
$type (string) 正在发送的电子邮件的类型。可以是“成功”、“失败”、“手动”、“关键”之一。
$core_update (object) 尝试的更新提议。
$result (mixed) 核心更新的结果。可能是WP_错误。

源码(Source)


更新版本 源码位置 使用 被使用
3.7.0 wp-admin/includes/class-wp-automatic-updater.php:841 1 0

auto_core_update_email 为WP2原创文章,链接:https://www.wp2.cn/hook/auto_core_update_email/