nop Posted February 17, 2016 Share Posted February 17, 2016 Hi, I'm using the new six theme. I have a hook to remove the "Account Overview" menu item in the main menu when not logged in but it does not work. This same code works perfect to remove the "Announcements" menu item. What am I missing? <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Account Overview'))) { $primaryNavbar->removeChild('Account Overview'); } }); ?> Thank you 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 18, 2016 Share Posted February 18, 2016 I'm using the new six theme. I have a hook to remove the "Account Overview" menu item in the main menu when not logged in Not seeing that menu item in mine, nor in the demo: http://demo.whmcs.com/ 0 Quote Link to comment Share on other sites More sharing options...
nop Posted February 18, 2016 Author Share Posted February 18, 2016 Oh! That made me look for it. I copied some hook code from the forums and it had it. All is well now. Thank you! 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.