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
548                 *
549                 * The firing of this action does not necessarily mean that the recipient received the
550                 * email successfully. It only means that the `send` method above was able to
551                 * process the request without any errors.
552                 *
553                 * @since 5.9.0
554                 *
555                 * @param array $mail_data An array containing the mail recipient, subject, message, headers, and attachments.
556                 */
557                do_action( 'wp_mail_succeeded', $mail_data );
558
559                return $send;
560           } catch ( PHPMailer\PHPMailer\Exception $e ) {
561                $mail_data['phpmailer_exception_code'] = $e->getCode();
562
563                /**
564                 * Fires after a PHPMailer\PHPMailer\Exception is caught.
565                 *
566                 * @since 4.4.0