From 1815a1aacfffc4d9e65fbaf66e57548fc25f748e Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 30 Aug 2019 09:24:04 -0400 Subject: [PATCH] Update setting from name Set up the from name for email. --- models/admin/messages/index.php | 3 ++- models/admin/messages/sendMessagesEmails.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/models/admin/messages/index.php b/models/admin/messages/index.php index d6204f4..15b277a 100644 --- a/models/admin/messages/index.php +++ b/models/admin/messages/index.php @@ -836,7 +836,8 @@ class GlmMembersAdmin_messages_index extends GlmDataEmailMessages // Set the From name using this wordpress hook. add_filter( 'wp_mail_from_name', - function ( $fromName ) { + function ( $name ) use ( $fromName ) { + return $fromName; } ); diff --git a/models/admin/messages/sendMessagesEmails.php b/models/admin/messages/sendMessagesEmails.php index 129f43f..4871ecf 100644 --- a/models/admin/messages/sendMessagesEmails.php +++ b/models/admin/messages/sendMessagesEmails.php @@ -183,7 +183,7 @@ class GlmMembersAdmin_messages_sendMessagesEmails // Set the From name using this wordpress hook. add_filter( 'wp_mail_from_name', - function ( $fromName ) { + function ( $name ) use ( $fromName ) { return $fromName; } ); -- 2.17.1