Term_Saver::do_import()

Summary

Import the Term into WordPress


Return

(int) The imported term ID


Source

File: src/BigCommerce/Import/Importers/Terms/Term_Saver.php

	public function do_import() {
		$this->term_id = $this->save_wp_term( $this->bc_term );
		$this->save_wp_termmeta( $this->bc_term );
		$this->import_image( $this->bc_term );

		update_term_meta( $this->term_id, self::DATA_HASH_META_KEY, self::hash( $this->bc_term ) );
		update_term_meta( $this->term_id, self::IMPORTER_VERSION_META_KEY, Import_Strategy::VERSION );

		return $this->term_id;
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.