From 0bc4089ea7f22f0be15c730900a2fd3de0030d73 Mon Sep 17 00:00:00 2001 From: JeroenSormani Date: Wed, 9 Dec 2015 09:29:32 +0100 Subject: [PATCH] Add hooks after order line items in admin --- includes/admin/meta-boxes/views/html-order-items.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/admin/meta-boxes/views/html-order-items.php b/includes/admin/meta-boxes/views/html-order-items.php index fb05f829bd3..5ae82dadea1 100644 --- a/includes/admin/meta-boxes/views/html-order-items.php +++ b/includes/admin/meta-boxes/views/html-order-items.php @@ -87,6 +87,7 @@ if ( wc_tax_enabled() ) { do_action( 'woocommerce_order_item_' . $item['type'] . '_html', $item_id, $item, $order ); } + do_action( 'woocommerce_admin_order_items_after_line_items', $order->id ); ?> @@ -95,6 +96,7 @@ if ( wc_tax_enabled() ) { foreach ( $line_items_shipping as $item_id => $item ) { include( 'html-order-shipping.php' ); } + do_action( 'woocommerce_admin_order_items_after_shipping', $order->id ); ?> @@ -102,6 +104,7 @@ if ( wc_tax_enabled() ) { foreach ( $line_items_fee as $item_id => $item ) { include( 'html-order-fee.php' ); } + do_action( 'woocommerce_admin_order_items_after_fees', $order->id ); ?> @@ -110,6 +113,7 @@ if ( wc_tax_enabled() ) { foreach ( $refunds as $refund ) { include( 'html-order-refund.php' ); } + do_action( 'woocommerce_admin_order_items_after_refunds', $order->id ); } ?>