function term_relationships_handler($object_id, $term_ids) { foreach ((array) $term_ids as $term_id) { $this->term_relationship_handler($object_id, $term_id); } }