Skip to content

Commit

Permalink
Merge pull request #117 from dallendalton/PI-236-Line-Item-Filters
Browse files Browse the repository at this point in the history
Line Item Data Filters
  • Loading branch information
dallendalton authored Aug 12, 2019
2 parents c3ae675 + 962d242 commit 4046863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-wc-taxjar-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ protected function get_line_items( $wc_cart_object ) {
}
}

return $line_items;
return apply_filters( 'taxjar_cart_get_line_items', $line_items, $wc_cart_object );
}

/**
Expand Down Expand Up @@ -924,7 +924,7 @@ protected function get_backend_line_items( $order ) {
}
}

return $line_items;
return apply_filters( 'taxjar_order_calculation_get_line_items', $line_items, $order );
}

protected function get_line_item( $id, $line_items ) {
Expand Down

0 comments on commit 4046863

Please sign in to comment.