public static function argTaxonomy(Query $query, $value, &$q)
{
if (!empty($q['tax_query'])) {
return;
}
if (!empty($q['term'])) {
$query->should(['terms.' . $value . '.all_slugs' => $q['term']]);
} elseif (!empty($q['term_id'])) {
$query->should(['terms.' . $value . '.term_id' => $q['term_id'], 'terms.' . $value . '.parent' => $q['term_id']]);
}
}