automatic_updates_debug_email WordPress Filter Hook

The automatic_updates_debug_email hook is used to send debug information about WordPress automatic updates to a specified email address. This information can be useful for troubleshooting update issues.

apply_filters( 'automatic_updates_debug_email', array $email, int $failures, mixed $results ) #

Filters the debug email that can be sent following an automatic background core update.


Parameters

$email

(array)Array of email arguments that will be passed to wp_mail().

  • 'to'
    (string) The email recipient. An array of emails can be returned, as handled by wp_mail().
  • 'subject'
    (string) Email subject.
  • 'body'
    (string) Email message body.
  • 'headers'
    (string) Any email headers. Default empty.

$failures

(int)The number of failures encountered while upgrading.

$results

(mixed)The results of all attempted updates.


Top ↑

Source

File: wp-admin/includes/class-wp-automatic-updater.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.