Skip to content

Commit

Permalink
Add missing warranty attachment id to rest props.
Browse files Browse the repository at this point in the history
  • Loading branch information
slickcharmer committed May 22, 2023
1 parent 92c0545 commit 22ba05d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/api/class-wc-gzd-rest-products-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,8 @@ private function get_product_data( $product, $context = 'view' ) {
// Differential taxed?
$data['differential_taxation'] = $gzd_product->is_differential_taxed( $context );

$data['warranty_attachment_id'] = $gzd_product->get_warranty_attachment_id( $context );

// Is food?
$data['is_food'] = $gzd_product->is_food( $context );

Expand Down

0 comments on commit 22ba05d

Please sign in to comment.