WC_Importer_Interface
in
WooCommerce Importer Interface
Tags
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
get_file_position()
Get file pointer position from the last read.
public
get_file_position() : int
Return values
intget_mapped_keys()
Get file mapped headers.
public
get_mapped_keys() : array
Return values
arrayget_parsed_data()
Get parsed data.
public
get_parsed_data() : array
Return values
arrayget_percent_complete()
Get file pointer position as a percentage of file size.
public
get_percent_complete() : int
Return values
intget_raw_data()
Get raw data.
public
get_raw_data() : array
Return values
arrayget_raw_keys()
Get file raw keys.
public
get_raw_keys() : array
CSV - Headers. XML - Element names. JSON - Keys
Return values
arrayimport()
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' => []]