WC_WCCOM_Site_Installation_Manager::get_installation_steps()protectedWC 1.0

Get the steps to run.

Method of the class: WC_WCCOM_Site_Installation_Manager{}

No Hooks.

Return

String[].

Usage

// protected - for code of main (parent) or child class
$result = $this->get_installation_steps( $start_step, $end_step );
$start_step(string) (required)
The step to start from.
$end_step(string) (required)
The step to end at.

WC_WCCOM_Site_Installation_Manager::get_installation_steps() code WC 9.1.2

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 );
}