From 55c664d2d76df784c4b34b5ccb57af33df4eb9b5 Mon Sep 17 00:00:00 2001 From: Jason Kytros Date: Wed, 31 Jan 2018 14:53:44 +0200 Subject: [PATCH 1/2] Remove filter 'woocommerce_order_item_product' from class-wc-structured-data.php --- includes/class-wc-structured-data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-structured-data.php b/includes/class-wc-structured-data.php index bc384a441f6..1dc9e456f08 100644 --- a/includes/class-wc-structured-data.php +++ b/includes/class-wc-structured-data.php @@ -390,7 +390,7 @@ class WC_Structured_Data { continue; } - $product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item ); + $product = $order->get_product_from_item( $item ); $product_exists = is_object( $product ); $is_visible = $product_exists && $product->is_visible(); From a08c00325405a3fe24ec4a900e7b91a5cb3a4374 Mon Sep 17 00:00:00 2001 From: Jason Kytros Date: Wed, 31 Jan 2018 14:54:51 +0200 Subject: [PATCH 2/2] Remove filter 'woocommerce_order_item_product' from order-details.php --- templates/order/order-details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/order/order-details.php b/templates/order/order-details.php index 1b79b772c51..b3c3d5af810 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -52,7 +52,7 @@ if ( $show_downloads ) { do_action( 'woocommerce_order_details_before_order_table_items', $order ); foreach ( $order_items as $item_id => $item ) { - $product = apply_filters( 'woocommerce_order_item_product', $item->get_product(), $item ); + $product = $item->get_product(); wc_get_template( 'order/order-details-item.php', array( 'order' => $order,