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 ) ) {
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。