woocommerce_product_import_pre_insert_product_object filter-hookWC 1.0

Usage

add_filter( 'woocommerce_product_import_pre_insert_product_object', 'wp_kama_woocommerce_product_import_pre_insert_object_filter', 10, 2 );

/**
 * Function for `woocommerce_product_import_pre_insert_product_object` filter-hook.
 * 
 * @param  $object 
 * @param  $data   
 *
 * @return 
 */
function wp_kama_woocommerce_product_import_pre_insert_object_filter( $object, $data ){

	// filter...
	return $object;
}
$object
-
$data
-

Where the hook is called

WC_Product_Importer::process_item()
woocommerce_product_import_pre_insert_product_object
woocommerce/includes/import/abstract-wc-product-importer.php 280
$object = apply_filters( 'woocommerce_product_import_pre_insert_product_object', $object, $data );

Where the hook is used in WooCommerce

Usage not found.