automatic_updates_debug_email

过滤钩子
apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results )
参数
  • (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 Email subject. @type string $body Email message body. @type string $headers Any email headers. Default empty. }
    Required:
  • (int) $failures The number of failures encountered while upgrading.
    Required:
  • (mixed) $results The results of all attempted updates.
    Required:
定义位置
相关勾子
automatic_updates_send_debug_emailautomatic_updater_disabledautomatic_updates_completeauto_core_update_emailauto_core_update_send_email
相关方法
automatic_feed_linksvalidate_emailwp_theme_auto_update_setting_templatecore_auto_updates_settingsoption_update_filterwp_nav_menu_update_menu_items
引入
3.8.0
弃用
-

automatic_updates_debug_email是一个过滤钩子,允许你在自动更新失败时修改收件人的电子邮件地址,以获得调试信息。该钩子接收电子邮件地址,并在需要时返回一个修改的值。

过滤后台核心自动更新后可发送的调试邮件。

$email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results );

常见问题

FAQs
查看更多 >