public function __construct()
 {
     $this->name = 'registration';
     $this->description = __('This message type is for messages sent to attendees when their registration is approved.', 'event_espresso');
     $this->label = array('singular' => __('registration approved', 'event_espresso'), 'plural' => __('registrations approved', 'event_espresso'));
     parent::__construct();
 }
 protected function _primary_attendee_addressees()
 {
     $cached = $this->_single_message;
     $this->_single_message = FALSE;
     $addressees = parent::_primary_attendee_addressees();
     $this->_single_message = $cached;
     return $addressees;
 }
 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();
 }
 protected function _set_valid_shortcodes()
 {
     parent::_set_valid_shortcodes();
     //remove unwanted transaction shortcode
     foreach ($this->_valid_shortcodes as $context => $shortcodes) {
         if (($key = array_search('transaction', $shortcodes)) !== false) {
             unset($this->_valid_shortcodes[$context][$key]);
         }
     }
 }