WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
556 | * An array containing the email recipient(s), subject, message, headers, and attachments. |
557 | * |
558 | * @type string[] $to Email addresses to send message. |
559 | * @type string $subject Email subject. |
560 | * @type string $message Message contents. |
561 | * @type string[] $headers Additional headers. |
562 | * @type string[] $attachments Paths to files to attach. |
563 | * } |
564 | */ |
565 | do_action( 'wp_mail_succeeded', $mail_data ); |
566 |
|
567 | return $send; |
568 | } catch ( PHPMailer\PHPMailer\Exception $e ) { |
569 | $mail_data['phpmailer_exception_code'] = $e->getCode(); |
570 |
|
571 | /** |
572 | * Fires after a PHPMailer\PHPMailer\Exception is caught. |
573 | * |
574 | * @since 4.4.0 |