auto_core_update_email

过滤钩子
apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result )
参数
  • (array) $email { Array of email arguments that will be passed to wp_mail(). @type string $to The email recipient. An array of emails can be returned, as handled by wp_mail(). @type string $subject The email's subject. @type string $body The email message body. @type string $headers Any email headers, defaults to no headers. }
    Required:
  • (string) $type The type of email being sent. Can be one of 'success', 'fail', 'manual', '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:
定义位置
相关勾子
auto_core_update_send_emailauto_theme_update_send_emailauto_plugin_theme_update_emailauto_plugin_update_send_emailautomatic_updates_debug_email
相关方法
get_core_updateslist_core_updatecore_update_footerfind_core_updateadmin_created_user_emailvalidate_email
引入
3.7.0
弃用
-

auto_core_update_email是一个过滤钩子,允许你修改在有核心更新时发送的电子邮件。该钩子接收电子邮件文本,并在需要时返回一个修改值。

过滤自动后台核心更新后发送的邮件。

$email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result );

常见问题

FAQs
查看更多 >