auto_plugin_update_send_email

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

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

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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] );
$notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] );
$notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-04 16:32:31

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

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

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