Support

Home Forums Event Espresso Premium "EE_Declined_Registration_message_type" Error Reply To: "EE_Declined_Registration_message_type" Error

Reply To: "EE_Declined_Registration_message_type" Error

Author Replies
icl # Posted on May 8, 2018 at 2:42 pm

It looks like all the code is there.

<?php

if (!defined('EVENT_ESPRESSO_VERSION') )
	exit('NO direct script access allowed');

/**
 * Event Espresso
 *
 * Event Registration and Management Plugin for WordPress
 *
 * @ package		Event Espresso
 * @ author			Seth Shoultes
 * @ copyright		(c) 2008-2011 Event Espresso  All Rights Reserved.
 * @ license		http://eventespresso.com/support/terms-conditions/   * see Plugin Licensing *
 * @ link			http://www.eventespresso.com
 * @ version		4.0
 *
 * ------------------------------------------------------------------------
 *
 * EE_Declined_Registration_message_type
 *
 * Handles frontend registration message types.
 *
 * @package		Event Espresso
 * @subpackage	includes/core/messages/message_type/EE_Declined_Registration_message_type.class.php
 * @author		Darren Ethier
 *
 * ------------------------------------------------------------------------
 */

class EE_Declined_Registration_message_type extends EE_Registration_Base_message_type {

	public function __construct() {
		$this->name = 'declined_registration';
		$this->description = __('This message type is for messages sent to registrants when their registration is declined.', 'event_espresso');
		$this->label = array(
			'singular' => __('registration declined', 'event_espresso'),
			'plural' => __('registrations declined', 'event_espresso')
			);
		$this->_master_templates = array(
			'email' => 'not_approved_registration'
			);
		parent::__construct();
	}

	/**
	 * _set_contexts
	 * This sets up the contexts associated with the message_type
	 *
	 * @access  protected
	 * @return  void
	 */
	protected function _set_contexts() {
		$this->_context_label = array(
			'label' => __('recipient', 'event_espresso'),
			'plural' => __('recipients', 'event_espresso'),
			'description' => __('Recipient\'s are who will receive the template.  You may want different registration details sent out depending on who the recipient is', 'event_espresso')
			);

		$this->_contexts = array(
			'admin' => array(
				'label' => __('Event Admin', 'event_espresso'),
				'description' => __('This template is what event administrators will receive with an declined registration', 'event_espresso')
				),
			'attendee' => array(
				'label' => __('Registrant', 'event_espresso'),
				'description' => __('This template is what each registrant for the event will receive when their registration is declined.', 'event_espresso')
				)
			);
	}

} //end EE_Declined_Registration_message_type class
Do NOT follow this link or you will be banned from the site!