add `include` on API parameters to return a specific terms using a set the IDs #310

This commit is contained in:
vnmedeiros 2019-10-11 10:18:18 -03:00
parent 7a29ab427e
commit 207b1ac0ec
1 changed files with 2 additions and 1 deletions

View File

@ -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 = [