add `hide_empty` on support like query #318
This commit is contained in:
parent
99483cfafe
commit
c269d64c6c
|
@ -165,6 +165,7 @@ class REST_Controller extends \WP_REST_Controller {
|
|||
$terms = get_terms([
|
||||
'taxonomy' => $tax_query['taxonomy'],
|
||||
'fields' => 'ids',
|
||||
'hide_empty' => false,
|
||||
'search' => $tax_query['terms']
|
||||
]);
|
||||
|
||||
|
@ -179,6 +180,7 @@ class REST_Controller extends \WP_REST_Controller {
|
|||
$terms = get_terms([
|
||||
'taxonomy' => $tax_query['taxonomy'],
|
||||
'fields' => 'ids',
|
||||
'hide_empty' => false,
|
||||
'search' => $tax_query['terms']
|
||||
]);
|
||||
if ($terms) {
|
||||
|
|
Loading…
Reference in New Issue