Adding missing callback function for email notices.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 24 Sep 2018 16:15:07 +0000 (12:15 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 24 Sep 2018 16:15:07 +0000 (12:15 -0400)
For the attendee notices the function was missing to set the content
type of the email to html.

index.php
models/admin/registrations/sendNotifications.php

index 2e1a6ef..7fd7159 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Associate - Event Registrations Add-On
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Add-on to integrate registrations into Events add-on.
- * Version: 1.0.20
+ * Version: 1.0.21
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -17,7 +17,7 @@
  * @package glmMembersRegistrationsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.20
+ * @version 1.0.21
  */
 
 // Check that we're being called by WordPress.
@@ -41,7 +41,7 @@ if (!defined('ABSPATH')) {
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.20');
+define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.21');
 define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_VERSION', '1.0.1');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 7907b25..38b0c5e 100644 (file)
@@ -286,6 +286,16 @@ class GlmMembersAdmin_registrations_sendNotifications extends GlmDataRegistratio
 
     }
 
+    /**
+     * Set content type of the email.
+     *
+     * Used as filter for the wp_mail_content_type
+     */
+    function set_content_type()
+    {
+        return "text/html";
+    }
+
     /**
      * Output an E-Mail message to screen for testing
      *