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

{} Это метод класса: WC_Importer_Interface{}

Хуков нет.

Возвращает

Массив.

Использование

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

Код WC_Importer_Interface::import() WC 6.4.1

public function import();