woocommerce_product_csv_importer_args
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.
Где вызывается хук
woocommerce_product_csv_importer_args
woocommerce_product_csv_importer_args
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 84
$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 );