Merge pull request #18703 from jimjasson/issue-18702
Remove multiple application of filter 'woocommerce_order_item_product'
This commit is contained in:
commit
a12fe25bcd
|
@ -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();
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue