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 |
|---|---|
| 638 | * |
| 639 | * @type string[] $to Email addresses to send message. |
| 640 | * @type string $subject Email subject. |
| 641 | * @type string $message Message contents. |
| 642 | * @type string[] $headers Additional headers. |
| 643 | * @type string[] $attachments Paths to files to attach. |
| 644 | * @type string[] $embeds Paths to files to embed. |
| 645 | * } |
| 646 | */ |
| 647 | do_action( 'wp_mail_succeeded', $mail_data ); |
| 648 | |
| 649 | return $send; |
| 650 | } catch ( PHPMailer\PHPMailer\Exception $e ) { |
| 651 | $mail_data['phpmailer_exception_code'] = $e->getCode(); |
| 652 | |
| 653 | /** |
| 654 | * Fires after a PHPMailer\PHPMailer\Exception is caught. |
| 655 | * |
| 656 | * @since 4.4.0 |