getWordpressConfig()->atAdminPanel() === false && $this->getMainConfig()->blogAdminHint() === true; } /** * @throws UserGroupTypeException */ public function adminOutput(string $objectType, int|string $objectId, $text = null): string { if ($this->showAdminHint() === true) { $hintText = $this->getMainConfig()->getBlogAdminHintText(); if ($text !== null && $this->getUtil()->endsWith($text, $hintText) === true) { return ''; } if ($this->getUserHandler()->userIsAdmin($this->getWordpress()->getCurrentUser()->ID) === true && count($this->getUserGroupHandler()->getUserGroupsForObject($objectType, $objectId)) > 0 ) { return $hintText; } } return ''; } }