akcjaod 5.9.0
wp_mail_succeeded
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$mail_data | array | { 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. @type string[] $embeds Paths to files to embed. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'wp_mail_succeeded', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'wp_mail_succeeded', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii