Stephens Posted July 17, 2015 Share Posted July 17, 2015 Could someone help me how to remove 'Network Status' at the menu from Login and logout pages using Hook ? 0 Quote Link to comment Share on other sites More sharing options...
lee-wservices Posted July 17, 2015 Share Posted July 17, 2015 (edited) Hope it helps you out just put it in a php file and upload to hooks it removes the logged out one. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->removeChild('Network Status'); }); add_hook("ClientAreaPrimaryNavbar"); ?> Removes from support dropdown. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Support'))) { $primaryNavbar->getChild('Support')->removeChild('Network Status'); } }); add_hook("ClientAreaPrimaryNavbar"); ?> Edited July 17, 2015 by lee-wservices 0 Quote Link to comment Share on other sites More sharing options...
Stephens Posted July 18, 2015 Author Share Posted July 18, 2015 Thanks lee-wservices, I am referring to the /logout.php and support home page at the Menu Title bar. Any idea how to remove? 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.