WooCommerce Code Reference

WC_Importer_Interface

WooCommerce Importer Interface

Tags
version
3.1.0

Table of Contents

get_file_position()  : int
Get file pointer position from the last read.
get_mapped_keys()  : array
Get file mapped headers.
get_parsed_data()  : array
Get parsed data.
get_percent_complete()  : int
Get file pointer position as a percentage of file size.
get_raw_data()  : array
Get raw data.
get_raw_keys()  : array
Get file raw keys.
import()  : array
Process importation.

Methods

import()

Process importation.

public import() : array

Returns an array with the imported and failed items. 'imported' contains a list of IDs. 'failed' contains a list of WP_Error objects.

Example: ['imported' => [], 'failed' => []]

Return values
array