WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_Importers::product_importer() public WC 1.0

The product importer.

This has a custom screen - the Tools > Import item is a placeholder. If we're on that screen, redirect to the custom one.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Admin_Importers = new WC_Admin_Importers();
$WC_Admin_Importers->product_importer();

Код WC_Admin_Importers::product_importer() WC 4.5.2

woocommerce/includes/admin/class-wc-admin-importers.php
<?php
public function product_importer() {
	if ( Constants::is_defined( 'WP_LOAD_IMPORTERS' ) ) {
		wp_safe_redirect( admin_url( 'edit.php?post_type=product&page=product_importer' ) );
		exit;
	}

	include_once WC_ABSPATH . 'includes/import/class-wc-product-csv-importer.php';
	include_once WC_ABSPATH . 'includes/admin/importers/class-wc-product-csv-importer-controller.php';

	$importer = new WC_Product_CSV_Importer_Controller();
	$importer->dispatch();
}