Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_mail_succeeded

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
558                 *     An array containing the email recipient(s), subject, message, headers, and attachments.
559                 *
560                 *     @type string[] $to          Email addresses to send message.
561                 *     @type string   $subject     Email subject.
562                 *     @type string   $message     Message contents.
563                 *     @type string[] $headers     Additional headers.
564                 *     @type string[] $attachments Paths to files to attach.
565                 * }
566                 */
567                do_action( 'wp_mail_succeeded', $mail_data );
568
569                return $send;
570           } catch ( PHPMailer\PHPMailer\Exception $e ) {
571                $mail_data['phpmailer_exception_code'] = $e->getCode();
572
573                /**
574                 * Fires after a PHPMailer\PHPMailer\Exception is caught.
575                 *
576                 * @since 4.4.0