Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::is_stage_completed │ public │ WC 1.0

Метод класса: ImportSession{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ImportSession = new ImportSession();
$ImportSession->is_stage_completed( $stage );
$stage(обязательный)
.

Код ImportSession::is_stage_completed() WC 11.1.2

public function is_stage_completed( $stage ) {
	$current_stage       = $this->get_stage();
	$stage_index         = array_search( $stage, self::STAGES_IN_ORDER, true );
	$current_stage_index = array_search( $current_stage, self::STAGES_IN_ORDER, true );

	return $current_stage_index > $stage_index;
}