WordPress Absender E-Mail ändern

Absender E-Mail in WordPress ändern.

Diesen code snippet in die functions.php

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return 'no-reply@deine-mailadresse.de';
}

function new_mail_from_name($old) {
 return 'deine-domain.de';
}

Für alle snippets benutzen wir das Plugin code snippet.