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