diff --git a/includes/Api/ProductsController.php b/includes/Api/ProductsController.php index 869fbee..4c418a8 100644 --- a/includes/Api/ProductsController.php +++ b/includes/Api/ProductsController.php @@ -575,9 +575,10 @@ class ProductsController { $categories = []; foreach ($terms as $term) { $categories[] = [ - 'id' => $term->term_id, + 'term_id' => $term->term_id, 'name' => $term->name, 'slug' => $term->slug, + 'description' => $term->description, 'parent' => $term->parent, 'count' => $term->count, ]; @@ -602,9 +603,10 @@ class ProductsController { $tags = []; foreach ($terms as $term) { $tags[] = [ - 'id' => $term->term_id, + 'term_id' => $term->term_id, 'name' => $term->name, 'slug' => $term->slug, + 'description' => $term->description, 'count' => $term->count, ]; } @@ -621,11 +623,12 @@ class ProductsController { foreach ($attributes as $attribute) { $result[] = [ - 'id' => $attribute->attribute_id, - 'name' => $attribute->attribute_name, - 'label' => $attribute->attribute_label, - 'type' => $attribute->attribute_type, - 'orderby' => $attribute->attribute_orderby, + 'attribute_id' => $attribute->attribute_id, + 'attribute_name' => $attribute->attribute_name, + 'attribute_label' => $attribute->attribute_label, + 'attribute_type' => $attribute->attribute_type, + 'attribute_orderby' => $attribute->attribute_orderby, + 'attribute_public' => $attribute->attribute_public, ]; }