过滤是否在自动后台核心更新后发送电子邮件。
原型
apply_filters( 'auto_core_update_send_email', bool $send, string $type, object $core_update, mixed $result )
参数
$send
(bool)
是否发送电子邮件。默认为true。
$type
(string)
要发送的电子邮件类型。可以是“成功”,“失败”,“批判”之一。
$core_update
(object)
尝试的更新优惠。
$result
(mixed)
核心更新的结果。可以是WP_Error。
源文件
路径:wp-admin/includes/class-wp-automatic-updater.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/auto_core_update_send_email/