WC_Product_CSV_Importer_Controller::get_importer()
Get importer instance.
Метод класса: WC_Product_CSV_Importer_Controller{}
Возвращает
WC_Product_CSV_Importer
.
Использование
$result = WC_Product_CSV_Importer_Controller::get_importer( $file, $args );
- $file(строка) (обязательный)
- File to import.
- $args(массив)
- Importer arguments.
По умолчанию: array()
Код WC_Product_CSV_Importer_Controller::get_importer() WC Product CSV Importer Controller::get importer WC 9.8.2
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 ); }