From: Steve Sutton Date: Mon, 24 Sep 2018 16:15:07 +0000 (-0400) Subject: Adding missing callback function for email notices. X-Git-Tag: v1.0.21^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=8d702425cdbdcc4f3c0e56080cd27cb6d2218c8f;p=WP-Plugins%2Fglm-member-db-registrations.git Adding missing callback function for email notices. For the attendee notices the function was missing to set the content type of the email to html. --- diff --git a/index.php b/index.php index 2e1a6ef..7fd7159 100755 --- 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 * @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. diff --git a/models/admin/registrations/sendNotifications.php b/models/admin/registrations/sendNotifications.php index 7907b25..38b0c5e 100644 --- a/models/admin/registrations/sendNotifications.php +++ b/models/admin/registrations/sendNotifications.php @@ -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 *