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