/** * @return WP_Term[] */ public function getAllTags() { if (!$this->_cache->containsKey('allTags')) { $tags = $this->_wpFunctions->get_tags(array('hide_empty' => false)); $this->_cache->put('allTags', $tags); } return $this->_cache->get('allTags'); }