Hardik Lamichhane Posted August 29, 2021 Share Posted August 29, 2021 Hello, please help me to edit my sidebar item "Open Ticket" link Im using latest version of whmcs, i need the hook to change the url of that item. Screenshot is shown below. Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Accc Posted November 29, 2022 Share Posted November 29, 2022 Similar to Brian exaample, but with getChild('Support')) to indicate the sidebar name <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Support'))) { $secondarySidebar->getChild('Support') ->getChild('Open Ticket') ->setUri('http://www.google.com'); } }); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.