auto_core_update_send_email

过滤钩子


apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result )
参数
  • (bool)
    $send
    Whether to send the email. Default true.
    Required:
  • (string)
    $type
    The type of email to send. Can be one of
    ‘success’, ‘fail’, ‘critical’.
    Required:
  • (object)
    $core_update
    The update offer that was attempted.
    Required:
  • (mixed)
    $result
    The result for the core update. Can be WP_Error.
    Required:
定义位置
  • wp-admin/includes/class-wp-automatic-updater.php
    , line 709
引入
3.7.0
弃用

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

if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {