public static function argPostType(Query $query, $value, &$q) { if ($value == 'any' || isset($value[0]) && $value[0] == 'any') { $pt = Indexer::getSearchablePostTypes(); $query->where('post_type', array_values($pt)); } else { $query->where('post_type', $value); } }