wp_mail_succeeded

动作钩子
do_action( 'wp_mail_succeeded', $mail_data )
参数
  • (array) $mail_data { An array containing the email recipient(s), subject, message, headers, and attachments. @type string[] $to Email addresses to send message. @type string $subject Email subject. @type string $message Message contents. @type string[] $headers Additional headers. @type string[] $attachments Paths to files to attach. }
    Required:
定义位置
相关勾子
wp_mail_failedwp_mail_charsetwp_mail_content_typewp_mailwp_mail_from
相关方法
wp_next_scheduledwp_mailwp_handle_sideloadwp_audio_shortcodewp_get_schedulewp_clear_scheduled_hook
引入
5.9.0
弃用
-

Fires after PHPMailer has successfully sent an email.

The firing of this action does not necessarily mean that the recipient(s) received the
email successfully. It only means that the send method above was able to
process the request without any errors.

do_action( 'wp_mail_succeeded', $mail_data );