protected function getCurrentTaxonomy()
	{
		if (!isset($this->args['taxonomies']) || empty($this->args['taxonomies']))
		{
			$this->args['taxonomies'] = $this->getDefaultTaxonomies();
		}

		foreach ($this->args['taxonomies'] as $tax)
		{
			if ($tax = get_term_by('slug', get_query_var($tax), $tax))
			{
				return $tax;
				break;
			}
		}

		return null;
	}
protected function getCurrentTaxonomy()
	{
		if (!isset($this->args['taxonomies']) || empty($this->args['taxonomies']))
		{
			$this->args['taxonomies'] = $this->getDefaultTaxonomies();
		}

		foreach ($this->args['taxonomies'] as $tax)
		{
			if ($tax = get_term_by('slug', get_query_var($tax), $tax))
			{
				return $tax;
				break;
			}
		}

		return null;
	}
protected function getCurrentTaxonomy ( ) { if ( ! isset ( $ this -> args [ 'taxonomies' ] ) || empty ( $ this -> args [ 'taxonomies' ] ) ) { $ this -> args [ 'taxonomies' ] = $ this -> getDefaultTaxonomies ( ) ; } foreach ( $ this -> args [ 'taxonomies' ] as $ tax ) { if ( $ tax = get_term_by ( 'slug' , get_query_var ( $ tax ) , $ tax ) ) { return $ tax ; break ; } } return null ; }
Find a custom taxonomy

@return mixed|null
Find a custom taxonomy