pre_wp_mail

FILTER wp-includes\pluggable.php (ligne 231) github
Filters whether to preempt sending an email. Returning a non-null value will short-circuit {@see wp_mail()}, returning that value instead. A boolean return value should be used to indicate whether the email was successfully sent.

Paramètres

Entrée :
null, $atts
Sortie :
@param null|bool $return Short-circuit return value.
@param array     $atts {

Utilisation

// Modifier la valeur avec le filtre 'pre_wp_mail'
add_filter('pre_wp_mail', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(null) {
    // Modifier la valeur
    return null;
}

Actualités

Chargement des actualités...