objectHandler->getTerm($id); $objectType = ($term !== false) ? $term->taxonomy : ObjectHandler::GENERAL_TERM_OBJECT_TYPE; $content .= $this->getGroupColumn($objectType, $id); } return $content; } /** * @throws UserGroupTypeException */ public function showTermEditForm($term): void { if ($term instanceof WP_Term) { $this->setObjectInformation($term->taxonomy, $term->term_id); } else { $this->setObjectInformation($term, null); } echo $this->getIncludeContents('TermEditForm.php'); } /** * @throws UserGroupTypeException */ public function saveTermData($termId): void { $term = $this->objectHandler->getTerm($termId); $objectType = ($term !== false) ? $term->taxonomy : ObjectHandler::GENERAL_TERM_OBJECT_TYPE; $this->saveObjectData($objectType, $termId); } public function removeTermData(int|string $termId): void { $this->removeObjectData(ObjectHandler::GENERAL_TERM_OBJECT_TYPE, $termId); } }