Skip to content

Commit

Permalink
✨ add order and vatzone to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
larasmorningtrain committed Nov 18, 2024
1 parent 484c35d commit e23ada2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Woocommerce/OrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static function getCustomer(\WC_Order $order, ?VatZone $vatZone, Payment

private static function getRecipient(\WC_Order $order, ?VatZone $vatZone): Recipient
{
$recipient = apply_filters('woocommerce_economic_invoice_get_recipient', null);
$recipient = apply_filters('woocommerce_economic_invoice_get_recipient', $order, $vatZone);

if ($recipient) {
return $recipient;
Expand Down

0 comments on commit e23ada2

Please sign in to comment.