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是一个过滤钩子,允许你修改在插件或主题更新时发送的电子邮件。该钩子接收电子邮件文本,并在需要时返回一个修改值。

过滤插件和主题的后台自动更新后发送的邮件。

$email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );

常见问题

FAQs
查看更多 >