WORDPRESS: Changer mail par défaut et nom afficher dans le email

5pixels > Wordpress  > WORDPRESS: Changer mail par défaut et nom afficher dans le email

WORDPRESS: Changer mail par défaut et nom afficher dans le email

Allez dans la fonction du thème (function.php) et aajouter ce code:

/** changing default wordpres email settings */

add_filter(‘wp_mail_from’, ‘new_mail_from’);
add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’);

function new_mail_from($old) {
return ‘monmail@domain.com’;
}
function new_mail_from_name($old) {
return ‘NOM AFFICHER’;
}

josue Wilsi
Pas de Commentaires

Post a Comment

Comment
Name
Email
Website
Ce site est protégé par reCAPTCHA et le GooglePolitique de confidentialité etConditions d'utilisation appliquer.

The reCAPTCHA verification period has expired. Please reload the page.