From: Steve Sutton Date: Fri, 23 Feb 2018 18:53:28 +0000 (-0500) Subject: Update from in emails X-Git-Tag: v1.0.10^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e6122ab38817c7003e4047221304501335dd6b69;p=WP-Themes%2Fwmta.git Update from in emails Update from to forms@wmta.org Update from name to WMTA --- 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'; +}