Snippet Category Maintenance & Optimization

Change Default “From” Email Address

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');
function new_mail_from($old) {
    return 'your-email@yourdomain.com';
}
function new_mail_from_name($old) {
    return 'Your Site Name';
}