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.
null, $atts
Sortie :
@param null|bool $return Short-circuit return value.
@param array $atts {
// 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;
}
Chargement des actualités...