From adcab6d7a27d2c6fc4d5b23d621065564f555deb Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Wed, 21 Apr 2021 15:57:45 +0000 Subject: [PATCH] Add filter to change WordPress mailer sender name to PhysioAssist. --- wp-content/mu-plugins/physioassist/src/Common/Setup.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-content/mu-plugins/physioassist/src/Common/Setup.php b/wp-content/mu-plugins/physioassist/src/Common/Setup.php index 4f6f65a3..179bda2b 100644 --- a/wp-content/mu-plugins/physioassist/src/Common/Setup.php +++ b/wp-content/mu-plugins/physioassist/src/Common/Setup.php @@ -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']); } -- 2.39.5