wp_mail_failed, new WP_Error( wp_mail_failed, $e->getMessage(
wp_mail_failed, new WP_Error( wp_mail_failed, $e->getMessage(
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('wp_mail_failed, new WP_Error( wp_mail_failed, $e->getMessage(') is found 2 times:
- /wp-includes/pluggable.php line 455
$mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' ); $mail_error_data['phpmailer_exception_code'] = $e->getCode(); /** This filter is documented in wp-includes/pluggable.php */ do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_error_data ) ); return false; } // Set mail's subject and body. $phpmailer->Subject = $subject;
- /wp-includes/pluggable.php line 665
* * @param WP_Error $error A WP_Error object with the PHPMailer\PHPMailer\Exception message, and an array * containing the mail recipient, subject, message, headers, attachments, and embeds. */ do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_data ) ); return false; } } endif;