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 8.7.0

public function import();