ROQ Posted August 10, 2022 Share Posted August 10, 2022 Hi guys, I've just upgraded to 8.5.1 and a hook I previously had is no longer working, any ideas on why? <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Network Status'))) { $primaryNavbar->removeChild('Network Status'); } if (!is_null($primaryNavbar->getChild('Announcements'))) { $primaryNavbar->removeChild('Announcements'); } }); add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Support'))) { $secondarySidebar->getChild('Support') ->removeChild('Network Status') ->removeChild('Knowledgebase'); } }); 0 Quote Link to comment Share on other sites More sharing options...
ROQ Posted August 10, 2022 Author Share Posted August 10, 2022 Sorted now 🙂 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted August 14, 2022 Share Posted August 14, 2022 And the solution was, so you can help others? 1 Quote Link to comment Share on other sites More sharing options...
ROQ Posted August 14, 2022 Author Share Posted August 14, 2022 it was actually working, just needed to clear browser cache. 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.