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(); 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,