WC_Importer_Interface::import()publicWC 1.0

Process importation. 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' => []]

Method of the class: WC_Importer_Interface{}

No Hooks.

Return

Array.

Usage

$WC_Importer_Interface = new WC_Importer_Interface();
$WC_Importer_Interface->import();

WC_Importer_Interface::import() code WC 9.4.2

public function import();