Merge pull request #10581 from jeffstieler/add/html-order-items-before-item-hook

Fire action before order line items are rendered.
This commit is contained in:
Claudio Sanches 2016-03-18 20:50:58 -03:00
commit 28366d9409
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ if ( wc_tax_enabled() ) {
$_product = $order->get_product_from_item( $item );
$item_meta = $order->get_item_meta( $item_id );
do_action( 'woocommerce_before_order_item_' . $item['type'] . '_html', $item_id, $item, $order );
include( 'html-order-item.php' );
do_action( 'woocommerce_order_item_' . $item['type'] . '_html', $item_id, $item, $order );