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是一個過濾鉤子,它允許你控制當一個主題更新可用時是否應該傳送電子郵件。該鉤子接收一個表示是否應該傳送電子郵件的布林值,並在需要時返回一個修改值。

過濾是否在後臺主題自動更新後傳送電子郵件。

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

常見問題

FAQs
檢視更多 >