WC_Admin_Importers::product_importer()

The product importer.


Description Description

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


Source Source

File: includes/admin/class-wc-admin-importers.php

97
98
99
100
101
102
103
104
105
106
107
108
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();
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.