From 48b9122bcc5a9ba0a9fe23e6ffbb9fe41fb7248d Mon Sep 17 00:00:00 2001 From: weryques Date: Tue, 13 Mar 2018 12:26:30 -0300 Subject: [PATCH] Filter type Object Filter type object is returned with filter --- src/api/endpoints/class-tainacan-rest-filters-controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/endpoints/class-tainacan-rest-filters-controller.php b/src/api/endpoints/class-tainacan-rest-filters-controller.php index 4acd173af..71e09c53e 100644 --- a/src/api/endpoints/class-tainacan-rest-filters-controller.php +++ b/src/api/endpoints/class-tainacan-rest-filters-controller.php @@ -314,6 +314,7 @@ class TAINACAN_REST_Filters_Controller extends TAINACAN_REST_Controller { if($request['context'] === 'edit'){ $item_arr['current_user_can_edit'] = $item->can_edit(); + $item_arr['filter_type_object'] = $item->get_filter_type_object(); } return $item_arr;