Merge pull request #5562 from coenjacobs/order-item-subtotal-hooks
Added parameter to get line subtotal filters
This commit is contained in:
commit
b994536ef6
|
@ -581,7 +581,7 @@ class WC_Order {
|
|||
|
||||
$price = $round ? round( $price, 2 ) : $price;
|
||||
|
||||
return apply_filters( 'woocommerce_order_amount_item_subtotal', $price, $this );
|
||||
return apply_filters( 'woocommerce_order_amount_item_subtotal', $price, $this, $item );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -602,7 +602,7 @@ class WC_Order {
|
|||
|
||||
$price = $round ? round( $price, 2 ) : $price;
|
||||
|
||||
return apply_filters( 'woocommerce_order_amount_line_subtotal', $price, $this );
|
||||
return apply_filters( 'woocommerce_order_amount_line_subtotal', $price, $this, $item );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue