/** * set_reg_step_initiated * * @access public * @param EE_SPCO_Reg_Step $reg_step * @throws \EE_Error */ public function set_reg_step_initiated(EE_SPCO_Reg_Step $reg_step) { // call set_reg_step_initiated ??? if (!$this->revisit && ($this->action === 'display_spco_reg_step' || $reg_step instanceof EE_SPCO_Reg_Step_Finalize_Registration)) { /** @type EE_Transaction_Processor $transaction_processor */ $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor'); // set the start time for this reg step if (!$transaction_processor->set_reg_step_initiated($this->transaction, $reg_step->slug())) { if (WP_DEBUG) { EE_Error::add_error(sprintf(__('The "%1$s" registration step was not initialized properly.', 'event_espresso'), $reg_step->name()), __FILE__, __FUNCTION__, __LINE__); } } } }