automatic_updates_debug_email
apply_filters( ‘automatic_updates_debug_email’, array $email , int $failures , mixed $results )
过滤器::过滤在自动后台核心更新之后可以发送的调试电子邮件。
Filter Hook: Filters the debug email that can be sent following an automatic background core update.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
(array) | 将传递给wp_mail()的电子邮件参数数组到’(字符串)电子邮件收件人。可以返回一组电子邮件,由wp_mail()处理。 | |
‘subject'(string) Email subject. | ‘body’(string) Email message body. | “headers”(字符串)任何电子邮件标题。默认为空。 |
$failures | (int) | 升级时遇到的失败数。 |
$results | (mixed) | 所有尝试更新的结果。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.8.0 | wp-admin/includes/class-wp-automatic-updater.php:1012 | 1 | 0 |
automatic_updates_debug_email 为WP2原创文章,链接:https://www.wp2.cn/hook/automatic_updates_debug_email/