WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer_Controller::get_importer() public WC 1.0

Get importer instance.

{} It's a method of the class: WC_Product_CSV_Importer_Controller{}

Return

WC_Product_CSV_Importer.

Usage

$result = WC_Product_CSV_Importer_Controller::get_importer( $file, $args );
$file(string) (required)
File to import.
$args(array)
Importer arguments.
Default: array()

Code of WC_Product_CSV_Importer_Controller::get_importer() WC 5.9.0

public static function get_importer( $file, $args = array() ) {
	$importer_class = apply_filters( 'woocommerce_product_csv_importer_class', 'WC_Product_CSV_Importer' );
	$args           = apply_filters( 'woocommerce_product_csv_importer_args', $args, $importer_class );
	return new $importer_class( $file, $args );
}