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

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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {
if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {
if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {

常見問題

FAQs
檢視更多 >