From 725e3ee4e067fbfbf4828bb3929f6bbc3017f93a Mon Sep 17 00:00:00 2001 From: adnanoner Date: Mon, 6 Jul 2015 18:09:06 +0200 Subject: [PATCH] Add $order to action 'woocommerce_order_item_' . $item['type'] . '_html' This comes in handy when you want change the line_items loop. In my case I wanted to have a single line for each order items (per quantity) so I could edit the order and change the product for individual items. Would be appreciated if this could be merged. --- includes/admin/meta-boxes/views/html-order-items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/views/html-order-items.php b/includes/admin/meta-boxes/views/html-order-items.php index 1e8ffe67d80..b047f046ca8 100644 --- a/includes/admin/meta-boxes/views/html-order-items.php +++ b/includes/admin/meta-boxes/views/html-order-items.php @@ -85,7 +85,7 @@ if ( wc_tax_enabled() ) { include( 'html-order-item.php' ); - do_action( 'woocommerce_order_item_' . $item['type'] . '_html', $item_id, $item ); + do_action( 'woocommerce_order_item_' . $item['type'] . '_html', $item_id, $item, $order ); } ?>