diff --git a/src/api/endpoints/class-tainacan-rest-filter-types-controller.php b/src/api/endpoints/class-tainacan-rest-filter-types-controller.php index 65f2826ca..c0fb0fffc 100644 --- a/src/api/endpoints/class-tainacan-rest-filter-types-controller.php +++ b/src/api/endpoints/class-tainacan-rest-filter-types-controller.php @@ -59,6 +59,7 @@ class REST_Filter_Types_Controller extends REST_Controller { $filter_type = new $name(); $filter_arr = $filter_type->_toArray(); + $filter_arr['name'] = $item; return $filter_arr; }