woocommerce_product_import_before_process_item
Process a single item and save.
Usage
add_action( 'woocommerce_product_import_before_process_item', 'wp_kama_woocommerce_product_import_before_process_item_action' );
/**
* Function for `woocommerce_product_import_before_process_item` action-hook.
*
* @param array $data Raw CSV data.
*
* @return void
*/
function wp_kama_woocommerce_product_import_before_process_item_action( $data ){
// action...
}
- $data(array)
- Raw CSV data.
Where the hook is called
woocommerce_product_import_before_process_item
woocommerce/includes/import/abstract-wc-product-importer.php 229
do_action( 'woocommerce_product_import_before_process_item', $data );