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:
定义位置
相关勾子
auto_core_update_emailauto_theme_update_send_emailauto_plugin_update_send_emailautomatic_updates_send_debug_emailautomatic_updates_debug_email
相关方法
admin_created_user_emailget_core_updateslist_core_updatewp_theme_auto_update_setting_templatecore_update_footercore_auto_updates_settings
引入
3.7.0
弃用
-

auto_core_update_send_email是一个过滤钩子,允许你控制在有核心更新时是否应该发送电子邮件。该钩子接收一个布尔值,表示是否应该发送电子邮件,并在需要时返回一个修改值。

过滤是否在后台核心自动更新后发送电子邮件。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 17:32:57

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: