auto_theme_update_send_email

过滤钩子
apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] )
参数
  • (bool) $enabled True if theme update notifications are enabled, false otherwise.
    Required:
  • (array) $update_results The results of theme update tasks.
    Required:
定义位置
相关勾子
auto_core_update_send_emailauto_plugin_update_send_emailauto_plugin_theme_update_emailauto_core_update_emailautomatic_updates_send_debug_email
相关方法
get_theme_updatesget_theme_update_availablelist_theme_updateswp_theme_auto_update_setting_templatetheme_update_availablewp_theme_update_rows
引入
5.5.1
弃用
-

auto_theme_update_send_email是一个过滤钩子,它允许你控制当一个主题更新可用时是否应该发送电子邮件。该钩子接收一个表示是否应该发送电子邮件的布尔值,并在需要时返回一个修改值。

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

$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 18:32:58

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

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

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