WC_WCCOM_Site_Installation_Manager::get_next_step()
Get the next step to run.
Метод класса: WC_WCCOM_Site_Installation_Manager{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_next_step( $state ): string;
- $state(WC_WCCOM_Site_Installation_State) (обязательный)
- Installation state.
Код WC_WCCOM_Site_Installation_Manager::get_next_step() WC WCCOM Site Installation Manager::get next step WC 9.8.2
protected function get_next_step( $state ): string { $last_executed_step = $state->get_last_step_name(); if ( ! $last_executed_step ) { return self::STEPS[0]; } $last_executed_step_index = array_search( $last_executed_step, self::STEPS, true ); return self::STEPS[ $last_executed_step_index + 1 ]; }