auto_plugin_theme_update_email

過濾鉤子
apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates )
引數
  • (array) $email { Array of email arguments that will be passed to wp_mail(). @type string $to The email recipient. An array of emails can be returned, as handled by wp_mail(). @type string $subject The email's subject. @type string $body The email message body. @type string $headers Any email headers, defaults to no headers. }
    Required:
  • (string) $type The type of email being sent. Can be one of 'success', 'fail', 'mixed'.
    Required:
  • (array) $successful_updates A list of updates that succeeded.
    Required:
  • (array) $failed_updates A list of updates that failed.
    Required:
定義位置
相關勾子
auto_plugin_update_send_emailauto_theme_update_send_emailauto_core_update_emailplugins_auto_update_enabledauto_core_update_send_email
相關方法
get_theme_update_availableget_plugin_updateslist_theme_updatestheme_update_availablelist_plugin_updateswp_theme_update_row
引入
5.5.0
棄用
-

auto_plugin_theme_update_email是一個過濾鉤子,允許你修改在外掛或主題更新時傳送的電子郵件。該鉤子接收電子郵件文字,並在需要時返回一個修改值。

過濾外掛和主題的後臺自動更新後傳送的郵件。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );
$email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );
$email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );

常見問題

FAQs
檢視更多 >