]> _ Git - physioassist-wordpress.git/commitdiff
Add filter to change WordPress mailer sender name to PhysioAssist.
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 21 Apr 2021 15:57:45 +0000 (15:57 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 21 Apr 2021 15:57:45 +0000 (15:57 +0000)
wp-content/mu-plugins/physioassist/src/Common/Setup.php

index 4f6f65a3bf57becc414ed6300fdc76166c27d4cb..179bda2b63608506fe4a388d637cf68aa07babfe 100644 (file)
@@ -16,6 +16,12 @@ class Setup {
         //     Carbon_Fields::boot();
         // });
 
+        // Change default e-mailer "from" name (normally "WordPress")
+        // Ref: https://developer.wordpress.org/reference/hooks/wp_mail_from_name/
+        add_filter('wp_mail_from_name', function($name) {
+            return 'PhysioAssist';
+        });
+
         add_action('plugins_loaded', [$this, 'debug']);
 
     }