Skip to content
Permalink
Browse files

add `hide_empty` on support like query #318

  • Loading branch information
vnmedeiros committed Oct 22, 2019
1 parent 99483cf commit c269d64c6c10a067181ff1fa3cefe5680226e365
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/api/class-tainacan-rest-controller.php
@@ -165,6 +165,7 @@ public function add_support_to_tax_query_like($args) {
$terms = get_terms([
'taxonomy' => $tax_query['taxonomy'],
'fields' => 'ids',
'hide_empty' => false,
'search' => $tax_query['terms']
]);
@@ -179,6 +180,7 @@ public function add_support_to_tax_query_like($args) {
$terms = get_terms([
'taxonomy' => $tax_query['taxonomy'],
'fields' => 'ids',
'hide_empty' => false,
'search' => $tax_query['terms']
]);
if ($terms) {

0 comments on commit c269d64

Please sign in to comment.
You can’t perform that action at this time.