woocommerce_product_import_before_process_item

woocommerce_product_import_before_process_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_product_import_before_process_item') is found 1 times:

  • /includes/import/abstract-wc-product-importer.php line 227
    	 * @return array|WP_Error
    	 */
    	protected function process_item( $data ) {
    		try {
    			do_action( 'woocommerce_product_import_before_process_item', $data );
    			$data = apply_filters( 'woocommerce_product_import_process_item_data', $data );
    
    			// Get product ID from SKU if created during the importation.
    			if ( empty( $data['id'] ) && ! empty( $data['sku'] ) ) {
    				$product_id = wc_get_product_id_by_sku( $data['sku'] );