wp_mail_succeeded

ACTION wp-includes\pluggable.php (ligne 647) github
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.

Paramètres

Entrée :
$mail_data
Sortie :
@param array $mail_data {

Utilisation

// Ajouter une fonction au hook action 'wp_mail_succeeded'
add_action('wp_mail_succeeded', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($mail_data) {
    // Votre code ici
    error_log('Hook wp_mail_succeeded déclenché');
}

Actualités

Chargement des actualités...