/**
  * 	resend_reg_confirmation_email
  */
 public static function resend_reg_confirmation_email()
 {
     EE_Registry::instance()->load_core('Request_Handler');
     $reg_url_link = EE_Registry::instance()->REQ->get('token');
     // was a REG_ID passed ?
     if ($reg_url_link) {
         $registration = EE_Registry::instance()->load_model('Registration')->get_one(array(array('REG_url_link' => $reg_url_link)));
         if ($registration instanceof EE_Registration) {
             // resend email
             EED_Messages::process_resend(array('_REG_ID' => $registration->ID()));
         } else {
             EE_Error::add_error(__('The Registration Confirmation email could not be sent because a valid Registration could not be retrieved from the database.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
         }
     } else {
         EE_Error::add_error(__('The Registration Confirmation email could not be sent because a registration token is missing or invalid.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
     }
     // request sent via AJAX ?
     if (EE_FRONT_AJAX) {
         echo json_encode(EE_Error::get_notices(FALSE));
         die;
         // or was JS disabled ?
     } else {
         // save errors so that they get picked up on the next request
         EE_Error::get_notices(TRUE, TRUE);
         wp_safe_redirect(add_query_arg(array('e_reg_url_link' => $reg_url_link), EE_Registry::instance()->CFG->core->thank_you_page_url()));
     }
 }
 /**
  * This processes an request to resend a registration and assumes we have a _REG_ID for doing so. So if the caller knows that the _REG_ID isn't in the req_data array but CAN obtain it, the caller should ADD the _REG_ID to the _req_data array.
  * @return bool success/fail
  */
 protected function _process_resend_registration()
 {
     add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true');
     $this->_template_args['success'] = EED_Messages::process_resend($this->_req_data);
     do_action('AHEE__EE_Admin_Page___process_resend_registration', $this->_template_args['success'], $this->_req_data);
     return $this->_template_args['success'];
 }
 /**
  * This processes an request to resend a registration and assumes we have a _REG_ID for doing so. So if the caller knows that the _REG_ID isn't in the req_data array but CAN obtain it, the caller should ADD the _REG_ID to the _req_data array.
  * @return bool success/fail
  */
 protected function _process_resend_registration()
 {
     $this->_template_args['success'] = EED_Messages::process_resend($this->_req_data);
     do_action('AHEE__EE_Admin_Page___process_resend_registration', $this->_template_args['success'], $this->_req_data);
     return $this->_template_args['success'];
 }
 /**
  * @deprecated 4.5.0
  */
 public function process_resend($success, $req_data)
 {
     self::doing_it_wrong_call(__METHOD__);
     EED_Messages::process_resend($req_data);
 }