Tribe__Events__Aggregator__Record__CSV::continue_import()


Source

File: src/Tribe/Aggregator/Record/CSV.php

	public function continue_import() {
		$importer                    = $this->get_importer();
		$importer->is_aggregator     = true;
		$importer->aggregator_record = $this;
		$importer                    = $this->maybe_set_default_category( $importer );
		$importer                    = $this->maybe_set_default_post_status( $importer );
		$offset                      = (int) get_option( 'tribe_events_importer_offset', 1 );

		if ( -1 === $offset ) {
			$this->state = 'complete';
			$this->clean_up_after_import();
		} else {
			$this->state = 'importing';
			$importer->set_offset( $offset );
			$this->do_import( $importer );
			$this->log_import_results( $importer );
		}

		return $this->meta['activity'];
	}