WC_WCCOM_Site_Installation_Manager::get_installation_steps
Get the steps to run.
Метод класса: WC_WCCOM_Site_Installation_Manager{}
Хуков нет.
Возвращает
Строку[].
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_installation_steps( $start_step, $end_step );
- $start_step(строка) (обязательный)
- The step to start from.
- $end_step(строка) (обязательный)
- The step to end at.
Код WC_WCCOM_Site_Installation_Manager::get_installation_steps() WC WCCOM Site Installation Manager::get installation steps WC 11.0.1
protected function get_installation_steps( string $start_step, string $end_step ) {
$start_step_offset = array_search( $start_step, self::STEPS, true );
$end_step_index = array_search( $end_step, self::STEPS, true );
$length = $end_step_index - $start_step_offset + 1;
return array_slice( self::STEPS, $start_step_offset, $length );
}