woocommerce_product_importer_parsed_data filter-hookWC 1.0

Filter product importer parsed data.

Usage

add_filter( 'woocommerce_product_importer_parsed_data', 'wp_kama_woocommerce_product_importer_parsed_data_filter', 10, 2 );

/**
 * Function for `woocommerce_product_importer_parsed_data` filter-hook.
 * 
 * @param array               $parsed_data Parsed data.
 * @param WC_Product_Importer $importer    Importer instance.
 *
 * @return array
 */
function wp_kama_woocommerce_product_importer_parsed_data_filter( $parsed_data, $importer ){

	// filter...
	return $parsed_data;
}
$parsed_data(array)
Parsed data.
$importer(WC_Product_Importer)
Importer instance.

Changelog

Since

Where the hook is called

WC_Product_CSV_Importer::set_parsed_data()
woocommerce_product_importer_parsed_data
WC_Product_Importer::get_parsed_data()
woocommerce_product_importer_parsed_data
woocommerce/includes/import/class-wc-product-csv-importer.php 1066
$this->parsed_data[] = apply_filters( 'woocommerce_product_importer_parsed_data', $this->expand_data( $data ), $this );
woocommerce/includes/import/abstract-wc-product-importer.php 131
return apply_filters( 'woocommerce_product_importer_parsed_data', $this->parsed_data, $this );

Where the hook is used in WooCommerce

Usage not found.