From: stephen@cubedesigners.com Date: Wed, 21 Apr 2021 15:57:45 +0000 (+0000) Subject: Add filter to change WordPress mailer sender name to PhysioAssist. X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=adcab6d7a27d2c6fc4d5b23d621065564f555deb;p=physioassist-wordpress.git Add filter to change WordPress mailer sender name to PhysioAssist. --- 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']); }