add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if($primarySidebar->getChild("Domain Details Management") && $primarySidebar->getChild("Domain Details Management") ->getChild("Domain Contacts")) { $primarySidebar->getChild("Domain Details Management") ->getChild("Domain Contacts") ->setLabel("Custom Text Here") ->setUri('https://www.hostica.com/clientarea.php?action=domaincontactso') ->setAttribute("target", '_blank'); } });Invalid Entity Requested