function filter_tax($query) { $cats = isset($this->options['cathidden']) && is_serialized($this->options['cathidden']) ? unserialize($this->options['cathidden']) : array(); $tags = isset($this->options['taghidden']) && is_serialized($this->options['taghidden']) ? unserialize($this->options['taghidden']) : array(); $query['exclude'] = implode(',',array_merge($cats,$tags)); return $query; }