Product_Saver::do_import()
Summary
Import the product into WordPress
Return
(int) The imported post ID
Source
File: src/BigCommerce/Import/Importers/Products/Product_Saver.php
public function do_import() { $builder = new Product_Builder( $this->product, $this->listing, $this->channel_term, $this->catalog ); $this->save_terms( $builder ); $this->save_wp_postmeta( $builder ); $this->save_wp_post( $builder ); $product = new Product( $this->post_id ); $product->update_source_data( $this->product ); $product->update_listing_data( $this->listing ); $this->save_modifiers( $product ); $this->save_options( $product ); $this->save_custom_fields( $product ); $this->save_images( $builder ); $this->send_notifications(); return $this->post_id; }