wphooks.info - automatic_updates_debug_email

automatic_updates_debug_email

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-admin/includes/class-wp-automatic-updater.php:
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
		 *
		 *     @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.
		 * }
		 * @param int   $failures The number of failures encountered while upgrading.
		 * @param mixed $results  The results of all attempted updates.
		 */
		$email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results );

		wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
	}
}