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
檢視更多 >