woocommerce_product_csv_importer_args хук-фильтрWC 1.0

Get importer instance.

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

add_filter( 'woocommerce_product_csv_importer_args', 'wp_kama_woocommerce_product_csv_importer_args_filter', 10, 2 );

/**
 * Function for `woocommerce_product_csv_importer_args` filter-hook.
 * 
 * @param string $file File to import.
 * @param array  $args Importer arguments.
 *
 * @return string
 */
function wp_kama_woocommerce_product_csv_importer_args_filter( $file, $args ){

	// filter...
	return $file;
}
$file(строка)
File to import.
$args(массив)
Importer arguments.

Где вызывается хук

WC_Product_CSV_Importer_Controller::get_importer()
woocommerce_product_csv_importer_args
OnboardingTasks::import_sample_products_from_csv()
woocommerce_product_csv_importer_args
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 82
$args           = apply_filters( 'woocommerce_product_csv_importer_args', $args, $importer_class );
woocommerce/src/Admin/API/OnboardingTasks.php 326
$args           = apply_filters( 'woocommerce_product_csv_importer_args', $args, $importer_class );

Где используется хук в WooCommerce

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