Merge pull request #5562 from coenjacobs/order-item-subtotal-hooks

Added  parameter to get line subtotal filters
This commit is contained in:
Mike Jolley 2014-05-27 13:03:51 +01:00
commit b994536ef6
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/**