]> _ Git - spinepro.git/commitdiff
wait #7128 @1:00
authorsoufiane <soufiane@cubedesigners.com>
Thu, 10 Oct 2024 13:39:29 +0000 (15:39 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 10 Oct 2024 13:39:29 +0000 (15:39 +0200)
wp-content/themes/CCV/functions.php

index eb365a412033fc36fb9ae98c568c68b1b48a1eae..797dbaa919ac0d5913b98616f9c8372f3ecdb3fc 100644 (file)
@@ -59,6 +59,12 @@ array_map(function ($file) use ($sage_error) {
     }
 }, ['helpers', 'setup', 'filters', 'admin']);
 
+function force_host( $phpmailer ) {
+    $host = parse_url( get_site_url(), PHP_URL_HOST );
+    $phpmailer->Sender = 'spinepro@'.$host;
+}
+add_action( 'phpmailer_init', 'force_host' );
+
 /**
  * Enable sage features
  * @link https://roots.io/acorn/