From e6122ab38817c7003e4047221304501335dd6b69 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 23 Feb 2018 13:53:28 -0500 Subject: [PATCH] Update from in emails Update from to forms@wmta.org Update from name to WMTA --- functions.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 565c0ab..a4ac536 100644 --- a/functions.php +++ b/functions.php @@ -383,4 +383,15 @@ add_filter('is_page', function($page){ }else { return false; } -}); \ No newline at end of file +}); +/** 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 'forms@wmta.org'; +} +function new_mail_from_name($old) { + return 'WMTA'; +} -- 2.17.1