public function getTermIds($taxonomies)
    {
        $tags = [];
        foreach ($taxonomies as $voc => $terms) {
            $vocabulary_id = $this->vocabulary($voc);
            $exploded = is_array($terms) ? $terms : explode(',', $terms);

            foreach ($exploded as $term) {
                $result = $this->getTermId($term, $vocabulary_id);
                if ($result) {
                    $tags[] = $result;
                }
            }
        }

        return $tags;
    }
public function getTermIds($taxonomies)
    {
        $tags = [];
        foreach ($taxonomies as $voc => $terms) {
            $vocabulary_id = $this->vocabulary($voc);
            $exploded = is_array($terms) ? $terms : explode(',', $terms);

            foreach ($exploded as $term) {
                $result = $this->getTermId($term, $vocabulary_id);
                if ($result) {
                    $tags[] = $result;
                }
            }
        }

        return $tags;
    }
public function getTermIds ( $ taxonomies ) { $ tags = [ ] ; foreach ( $ taxonomies as $ voc => $ terms ) { $ vocabulary_id = $ this -> vocabulary ( $ voc ) ; $ exploded = is_array ( $ terms ) ? $ terms : explode ( ',' , $ terms ) ; foreach ( $ exploded as $ term ) { $ result = $ this -> getTermId ( $ term , $ vocabulary_id ) ; if ( $ result ) { $ tags [ ] = $ result ; } } } return $ tags ; }
Adds one or more tags and returns an array of id's

@param array $taxonomies
@return array
Adds one or more tags and returns an array of id s