So I am trying to modify the more menu on our WHMCS site. New install. I can get all the other menus to do what I would like using a hook.php file. This is what I have in my hook.php for More Menu.
if (!is_null($navItem = $primaryNavbar->getChild('More'))){
$navItem->removeChild('Open Ticket');
$navItem->addChild('Contact US')->setUri('https://my.example.com/contact.php')->;
}
No matter what I do, Open Ticket is still there and Contact Us is not. I have also tried
if (!is_null($primaryNavbar->getChild('More'))){
$primaryNavbar->removeChild('More');
}
Just to remove the whole menu Item itself but that does not work and usually breaks all the rest of the hooks that work just fine. Any recommendations?