auto_core_update_send_email

最后更新于:2021-11-25 21:13:11

apply_filters( ‘auto_core_update_send_email’, bool $send, string $type, object $core_update, mixed $result )

Filters whether to send an email following an automatic background core update.

参数

$send

(bool)
Whether to send the email. Default true.

$type

(string)
The type of email to send. Can be one of ‘success’, ‘fail’, ‘critical’.

$core_update

(object)
The update offer that was attempted.

$result

(mixed)
The result for the core update. Can be GC_Error.

源文件

文件: gc-admin/includes/class-gc-automatic-updater.php

View on Trac