From 207b1ac0ecbbbee69aa2b4ee56766fc9c6a59776 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Fri, 11 Oct 2019 10:18:18 -0300 Subject: [PATCH] add `include` on API parameters to return a specific terms using a set the IDs #310 --- src/api/class-tainacan-rest-controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/class-tainacan-rest-controller.php b/src/api/class-tainacan-rest-controller.php index 2fbf57630..fb9087b5d 100644 --- a/src/api/class-tainacan-rest-controller.php +++ b/src/api/class-tainacan-rest-controller.php @@ -92,7 +92,8 @@ class REST_Controller extends \WP_REST_Controller { 'metatype' => 'meta_type', 'hierarchical' => 'hierarchical', 'exclude' => 'exclude', - 'excludetree' => 'exclude_tree' + 'excludetree' => 'exclude_tree', + 'include' => 'include' ]; $meta_query = [